RedM Natives

GET_NUM_PLAYER_INDICES

Hash0x63D13184
Runtime nameGetNumPlayerIndices
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

int GET_NUM_PLAYER_INDICES();

Returns int

Usage

Lua
local retval = GetNumPlayerIndices()

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

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

Sources

Cfx.re native reference

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