RedM Natives

IS_PLAYER_WANTED_LEVEL_GREATER

Hash0xE1C0AD4C24324C36
Runtime nameIsPlayerWantedLevelGreater
NamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x238DB2A2C23EE9EF

Signature

BOOL IS_PLAYER_WANTED_LEVEL_GREATER(Player player, int wantedLevel);

Parameters

NameTypeDescription
playerPlayer—
wantedLevelint—

Returns BOOL

Usage

Lua
local retval = IsPlayerWantedLevelGreater(player, wantedLevel)

-- always works, by hash
local retval = Citizen.InvokeNative(0xE1C0AD4C24324C36, player, wantedLevel, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPlayerWantedLevelGreater(player, wantedLevel);

// by hash
const retval = Citizen.invokeNative('0xE1C0AD4C24324C36', player, wantedLevel, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xE1C0AD4C24324C36, player, wantedLevel);

Sources

alloc8or RDR3 NativeDB

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