GetMapGamemodes

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

If the given resource is a map, it returns an array of string with all compatible gamemodes defined in the map's meta.xml. Otherwise, it will return an empty string.


Syntax

API.getMapGamemodes(string resource);

Required Arguments

  • resource: parameter input should be in string type.

NOTE: This function returns data in string[] type.

Usage example(s)

Example Description

API.getMapGamemodes(string resource);

References