ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. getLocalization

Function

getLocalization

ClientInput and controlsIdentical to MTA:SA

Returns the player's language (the same one chosen in the launcher and game settings) as a table with a code and a name. Codes: pl, en, de, es, fr, it, pt, ru, uk, tr, cs, ro. The server knows the same language through getPlayerLocalization.

Syntax

table getLocalization()

Returns

E.g. { code = "de", name = "Deutsch" }.

Example

local lang = getLocalization()
outputChatBox("Język: " .. lang.name)

See also