engine.ActiveGamemode

From Garry's Mod
Jump to: navigation, search
 engine.ActiveGamemode( )

Contents

Description

Returns the name of the currently running gamemode.

BUG

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

Issue Tracker: #1988

Returns

string

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

Examples

Example

Prints out the name of the active gamemode.

print( engine.ActiveGamemode() )

Output:

sandbox
Personal tools
Navigation