Garry's Mod Wiki

debug.gethook

  function, string, number debug.gethook( thread thread = nil )

Description

Returns the current hook settings of the passed thread. The thread argument can be omitted. This is completely different to gamemode hooks. More information on hooks can be found at http://www.lua.org/pil/23.2.html

Arguments

1 thread thread = nil
Which thread to retrieve its hook from

Returns

1 function
Hook function
2 string
Hook mask
3 number
Hook count