RedM Natives

GET_MAX_WANTED_LEVEL

Gets the maximum wanted level the player can get.

Hash0xD04CFAD1E2B7984A
Runtime nameGetMaxWantedLevel
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x462E0DB9B137DC5F

Signature

int GET_MAX_WANTED_LEVEL();

Returns int

Description

Gets the maximum wanted level the player can get.
Ranges from 0 to 5.

Usage

Lua
local retval = GetMaxWantedLevel()

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

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

See also

Sources

alloc8or RDR3 NativeDB

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