debug.gethook

From Garry's Mod
Jump to: navigation, search
 debug.gethook( )

Contents

Description

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

Arguments

thread thread=nil

Which thread to retrieve its hook from

Returns

function

Hook function

Returns

string

Hook mask

Returns

number

Hook count
Personal tools
Navigation