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

Function

getGameType

Returns the game type set with setGameType.

Syntax

string getGameType()

Differences from MTA:SA

  • In MTA:SA this function is client-side only.

In MTA:SA

getGameType()

Returns

The game type, or false.

Example

outputServerLog("Tryb: " .. tostring(getGameType()))

See also