gamemode.Call

From GMod Wiki

Jump to: navigation, search
Function
Syntax gamemode.Call( String name, args )
Where is this used?
Description:
Called by the engine to call a hook within the loaded gamemode.
Returns: The result of the hook function.
Part of Library: gamemode
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Gamemode.Call]Gamemode.Call [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCall the loadout gamemode hook.
Used onNewerShared.png
Code
function Loadout(Player)
 
    gamemode.Call("PlayerLoadout", Player)
 
end
OutputN/A


Additional Notes


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox