RedM Natives

GET_NUM_PLAYER_TOKENS

Hash0x619E4A3D
Runtime nameGetNumPlayerTokens
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_NUM_PLAYER_TOKENS(char* playerSrc);

Parameters

NameTypeDescription
playerSrcchar*—

Returns int

Usage

Lua
local retval = GetNumPlayerTokens(playerSrc)

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

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

Sources

Cfx.re native reference

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