G.isDedicatedServer

From GMod Wiki

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



Example

DescriptionPrints a message if the code is run on a dedicated server.
Used onNewerServer.png
Code
if isDedicatedServer() then
    Msg("This is a dedicated server!\n")
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox