Garry's Mod Wiki

game.IsDedicated

  boolean game.IsDedicated()

Description

Returns true if the server is a dedicated server, false if it is a listen server or a singleplayer game.

Returns

1 boolean
Is the server dedicated or not.