RedM Natives

NETWORK_GET_TOTAL_NUM_PLAYERS

Hash0xCF61D4B4702EE9EB
Runtime nameNetworkGetTotalNumPlayers
NamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xCF61D4B4702EE9EB

Signature

int NETWORK_GET_TOTAL_NUM_PLAYERS();

Returns int

Usage

Lua
local retval = NetworkGetTotalNumPlayers()

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

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

Sources

alloc8or RDR3 NativeDB

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