G.SinglePlayer

From GMod Wiki

Jump to: navigation, search
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: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.SinglePlayer]G.SinglePlayer [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionChecks if the game is in single player mode.
Used onNewerShared.png
Code
print( SinglePlayer() )
Outputtrue or false
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox