G.SinglePlayer
From GMod Wiki
| Function | |
| Syntax |
SinglePlayer( ) Where is this used? |
| Description: | |
| Returns a boolean value depending on whether or not the current game is in single player mode. | |
| Returns: | Boolean |
| Part of Library: | Global Functions |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.SinglePlayer]G.SinglePlayer [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Checks if the game is in single player mode. |
|---|---|
| Used on | |
| Code | print( SinglePlayer() ) |
| Output | true or false |