Garry's Mod Wiki

Revision Difference

debug.gethook#513388

<function name="gethook" parent="debug" type="libraryfunc">⤶ <description>Returns the current hook settings of the passed thread. The thread argument can be omitted. This is unrelated to . More information on hooks can be found at http://www.lua.org/pil/23.2.html</description>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="thread" type="thread" default="nil">Which thread to retrieve its hook from</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="function">Hook function</ret>⤶ <ret name="" type="string">Hook mask</ret>⤶ <ret name="" type="number">Hook count</ret>⤶ </rets>⤶ </function>⤶ ⤶