ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setGameType

Function

setGameType

ServerServerIdentical to MTA:SA

Stores the server's game type (e.g. "Roleplay", "Freeroam", "DM").

Syntax

bool setGameType(string gameType)

Arguments

gameTypestring
Game type, or false to clear.

Returns

true on success.

Example

setGameType("Roleplay")

Notes

State for scripts. The launcher's server list does not show it yet.

See also