Skip to content
/SLASHPLAY

How to find which addon uses a hook in GMod

Type lua_findhooks PlayerSay in the server console to list every server-side Lua hook registered for that event, with its identifier.

lua_findhooks

Lists server-side Lua hooks by event name and hook identifier.

lua_findhooks <event> [identifier]

Examples

lua_findhooks PlayerSay

Find all chat hooks.

Arguments

eventRequired
Hook event name, for example PlayerSpawn.
identifierOptional
Hook identifier to narrow the search.

What it does

Shows which hooks addons have registered for an event, a quick way to find the addon that changes a behavior.

The game's own description: Find hooks by event name and hook identifier on the server.

Run it on your server

On a SLASHPLAY server, type it in the Console tab of the server page; the reply shows right under it. A value set there lasts until the server restarts. To keep it, add the line to garrysmod/cfg/server.cfg. New to this? Start a GMod server first.

Your own
GMod server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.