GET_PLAYER_FAKE_WANTED_LEVEL
Gets the current fake wanted level for a specified player.
Signature
int GET_PLAYER_FAKE_WANTED_LEVEL(char* playerSrc);Parameters
| Name | Type | Description |
|---|---|---|
playerSrc | char* | The target player |
Returns int — The fake wanted level
Description
Gets the current fake wanted level for a specified player. This native is used server side when using OneSync.
Usage
local retval = GetPlayerFakeWantedLevel(playerSrc)
-- always works, by hash
local retval = Citizen.InvokeNative(0x98d244, playerSrc, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetPlayerFakeWantedLevel(playerSrc);
// by hash
const retval = Citizen.invokeNative('0x98d244', playerSrc, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x98d244, playerSrc);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.