Garry's Mod Wiki


  any hook.Run( string eventName, vararg args )


Calls all hooks associated with the given event until one returns something other than nil and then returns that data. If no hook returns any data, it will try to call the GAMEMODE:<eventName>; alternative, if one exists.

This function internally calls hook.Call.

See also: gamemode.Call - same as this, but does not call hooks if the gamemode hasn't defined the function.


1 string eventName
The event to call hooks for.
2 vararg args
The arguments to be passed to the hooks.


1 any
Returned data from called hooks.