hook.Remove

From GMod Wiki

Jump to: navigation, search
Function
Syntax hook.Remove( String hook, String unique_name )
Where is this used?
Description:
Remove a hooked function
Returns: nil
Part of Library: Hook
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Hook.Remove]Hook.Remove [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis unhooks the think hook we added in hook.Add
Used onNewerShared.png
Code
hook.Remove( "Think", "Some unique name" )
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox