The Lab
LOCALIZATION native

GET_CURRENT_LANGUAGE

returns int0 paramsbuild 1207

Returns the index of the language the game is currently using.

Use it to pick translated strings in scripts that ship their own text.

Signature

C
int GET_CURRENT_LANGUAGE(); // 0xDB917DA5C6835FCC b1207

Parameters

This native takes no parameters.

Facts

Facts about GET_CURRENT_LANGUAGE
Name
GET_CURRENT_LANGUAGE
Hash
0xDB917DA5C6835FCC
Namespace
Returns
int
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0xDB917DA5C6835FCC, -- GET_CURRENT_LANGUAGE
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xDB917DA5C6835FCC", // GET_CURRENT_LANGUAGE
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xDB917DA5C6835FCC); // GET_CURRENT_LANGUAGE
All LOCALIZATION natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.