RedM Natives

GET_NUM_PLAYER_IDENTIFIERS

Hash0xFF7F66AB
Runtime nameGetNumPlayerIdentifiers
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_NUM_PLAYER_IDENTIFIERS(char* playerSrc);

Parameters

NameTypeDescription
playerSrcchar*—

Returns int

Usage

Lua
local retval = GetNumPlayerIdentifiers(playerSrc)

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

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

Sources

Cfx.re native reference

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