GetMapGamemodes

From GTA Network Wiki
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

string[] NAPI.Resource.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

NAPI.Resource.GetMapGamemodes(resource);

Changelog

Version Description
1.0 Release.

References