GetCurrentGamemode

From GT-MP
Jump to: navigation, search
GetCurrentGamemode
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Gets the name of the gamemode resource currently running.


Syntax

string API.getCurrentGamemode();


NOTE: This function returns data in string type.

Usage example(s)

In C#
Server-Side Function

This example prints the current Gamemode name in the server console.

string GamemodeText = API.getGamemodeName();
API.consoleOutput("Current Gamemode Name: " + GamemodeText);

References

ConsoleOutput