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

Page Links


Special Pages


Wikis

?

Render Time: 35ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 10
Render Body 0
Render Sidebar 17