IS_PLAYER_EVADING_WANTED_LEVEL
This will return true if the player is evading wanted level, meaning that the wanted level stars are blink.
Signature
BOOL IS_PLAYER_EVADING_WANTED_LEVEL(char* playerSrc);Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | The target player |
Returns BOOL — boolean value, depending if the player is evading his wanted level or not.
Description
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
local retval = IsPlayerEvadingWantedLevel(playerSrc)
-- always works, by hash
local retval = Citizen.InvokeNative(0x89a3881a, playerSrc, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPlayerEvadingWantedLevel(playerSrc);
// by hash
const retval = Citizen.invokeNative('0x89a3881a', playerSrc, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x89a3881a, playerSrc);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.