Garry's Mod Wiki

IsInGame

  boolean IsInGame()

Description

Returns true if the client is currently playing either a singleplayer or multiplayer game.

Returns

1 boolean
True if we are in a game.