RedM Natives

NETWORK_GET_NUM_PARTICIPANTS

Hash0x18D0456E86604654
Runtime nameNetworkGetNumParticipants
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x18D0456E86604654

Signature

int NETWORK_GET_NUM_PARTICIPANTS();

Returns int

Usage

Lua
local retval = NetworkGetNumParticipants()

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

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

Sources

alloc8or RDR3 NativeDB

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