Garry's Mod Wiki

engine.ActiveGamemode

Description

Returns the name of the currently running gamemode.

This will return the incorrect gamemode name on the client if used too early.

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

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 8
Render Body 0
Render Sidebar 6