gamemode.Get

From GMod Wiki

Jump to: navigation, search
Function
Syntax gamemode.Get( String name )
Where is this used?
Description:
Gets a registered gamemode's table.
Returns: Table Gamemode
Part of Library: gamemode
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Gamemode.Get]Gamemode.Get [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionReturns true if the gamemode is registered..
Used onNewerShared.png
Code
if gamemode.Get("sandbox") then return true end
OutputN/A


DescriptionPrints the gamemode's table.
Used onNewerShared.png
Code
PrintTable( gamemode.Get("sandbox") )
OutputThe gamemode's table.


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox