RedM Natives

IS_PLAYER_EVADING_WANTED_LEVEL

This will return true if the player is evading wanted level, meaning that the wanted level stars are blink.

Hash0x89A3881A
Runtime nameIsPlayerEvadingWantedLevel
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL IS_PLAYER_EVADING_WANTED_LEVEL(char* playerSrc);

Parameters

NameTypeDescription
playerSrcchar*

The target player

Returns BOOL — boolean value, depending if the player is evading his wanted level or not.

Description

Cfx.re native reference

This will return true if the player is evading wanted level, meaning that the wanted level stars are blink.
Otherwise will return false.

If the player is not wanted, it simply returns false.

Usage

Lua
local retval = IsPlayerEvadingWantedLevel(playerSrc)

-- always works, by hash
local retval = Citizen.InvokeNative(0x89a3881a, playerSrc, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsPlayerEvadingWantedLevel(playerSrc);

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

Sources

Cfx.re native reference

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