GET_CURRENT_LANGUAGE
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
int GET_CURRENT_LANGUAGE(); // 0xDB917DA5C6835FCC b1207Parameters
This native takes no parameters.
Facts
| 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.
local result = Citizen.InvokeNative(0xDB917DA5C6835FCC, -- GET_CURRENT_LANGUAGE
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xDB917DA5C6835FCC", // GET_CURRENT_LANGUAGE
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xDB917DA5C6835FCC); // GET_CURRENT_LANGUAGERelated LOCALIZATION natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.