Garry's Mod Wiki

engine.ActiveGamemode

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

Special Pages


Wikis

?

Render Time: 48ms

DB GetPage 27
Generate Html 1
SaveChanges (1) 10
Render Body 0
Render Sidebar 7