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: 18ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 5
Render Body 0
Render Sidebar 7