RedM Natives

GET_PLAYER_FAKE_WANTED_LEVEL

Gets the current fake wanted level for a specified player.

Hash0x98D244
Runtime nameGetPlayerFakeWantedLevel
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_PLAYER_FAKE_WANTED_LEVEL(char* playerSrc);

Parameters

NameTypeDescription
playerSrcchar*

The target player

Returns int — The fake wanted level

Description

Cfx.re native reference

Gets the current fake wanted level for a specified player. This native is used server side when using OneSync.

Usage

Lua
local retval = GetPlayerFakeWantedLevel(playerSrc)

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

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

Sources

Cfx.re native reference

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