G.isDedicatedServer
From GMod Wiki
Function | |
Syntax |
isDedicatedServer( ) Where is this used? |
Description: | |
Returns true if the code is being run on a dedicated server. | |
Returns: | Boolean |
Part of Library: | Global Functions |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.isDedicatedServer]G.isDedicatedServer [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Prints a message if the code is run on a dedicated server. |
---|---|
Used on | |
Code | if isDedicatedServer() then Msg("This is a dedicated server!\n") end |
Output | N/A |