S&box Wiki

Sandbox.Global.InGame

Syntax

static bool InGame { get; }

Description

Return true if we're in a game (ie, not in the main menu)