Garry's Mod Wiki

engine.ActiveGamemode

  string engine.ActiveGamemode()

Description

Returns the name of the currently running gamemode.

Returns

1 string
The active gamemode's name. This is the name of the gamemode's folder.

Example

Prints out the name of the active gamemode.

Output:
sandbox