getCurrentLanguage

GET_CURRENT_LANGUAGE0x2BDD44CC428A7EAE

The GTA V native GET_CURRENT_LANGUAGE of the LOCALIZATION namespace, as LS:MP client scripts call it: the global function getCurrentLanguage, in JavaScript and in Lua.

SignatureJavaScript
getCurrentLanguage(): number
SignatureLua
getCurrentLanguage(): integer

Usage

JavaScript
const result = getCurrentLanguage();
Lua
local result = getCurrentLanguage()

Parameters

None.

Returns

int JavaScript number, Lua integer

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

0 = american (en-US)
1 = french (fr-FR)
2 = german (de-DE)
3 = italian (it-IT)
4 = spanish (es-ES)
5 = brazilian (pt-BR)
6 = polish (pl-PL)
7 = russian (ru-RU)
8 = korean (ko-KR)
9 = chinesetrad (zh-TW)
10 = japanese (ja-JP)
11 = mexican (es-MX)
12 = chinesesimp (zh-CN)

Reference

Namespace
Localization LOCALIZATION
In the game
int GET_CURRENT_LANGUAGE()
Hash
0x2BDD44CC428A7EAE
Formerly
_GET_UI_LANGUAGE_ID _GET_CURRENT_LANGUAGE_ID

Open in the interactive natives reference