gamemode.Get
From GMod Wiki
| 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: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Gamemode.Get]Gamemode.Get [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Returns true if the gamemode is registered.. |
|---|---|
| Used on | |
| Code | if gamemode.Get("sandbox") then return true end |
| Output | N/A |
| Description | Prints the gamemode's table. |
|---|---|
| Used on | |
| Code | PrintTable( gamemode.Get("sandbox") ) |
| Output | The gamemode's table. |
Additional Notes
- Defined here : (Source Code)
- The gamemode has to be registered first, this is done automatically.