RedM Natives

GET_CURRENT_LANGUAGE

Hash0xDB917DA5C6835FCC
Runtime nameGetCurrentLanguage
NamespaceLOCALIZATION
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2BDD44CC428A7EAE

Signature

int GET_CURRENT_LANGUAGE();

Returns int

Description

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)

Usage

Lua
local retval = GetCurrentLanguage()

-- always works, by hash
local retval = Citizen.InvokeNative(0xDB917DA5C6835FCC, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetCurrentLanguage();

// by hash
const retval = Citizen.invokeNative('0xDB917DA5C6835FCC', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xDB917DA5C6835FCC);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.