localizationGetSystemLanguage

LOCALIZATION_GET_SYSTEM_LANGUAGE0x497420E022796B3F

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

SignatureJavaScript
localizationGetSystemLanguage(): number
SignatureLua
localizationGetSystemLanguage(): integer

Usage

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

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.

Same return values as getCurrentLanguage

Reference

Namespace
Localization LOCALIZATION
In the game
int LOCALIZATION_GET_SYSTEM_LANGUAGE()
Hash
0x497420E022796B3F
Introduced
Game build 877 legacy numbering
Formerly
_LOCALIZATION_GET_SYSTEM_LANGUAGE

Open in the interactive natives reference