NETWORK_GET_TOTAL_NUM_PLAYERS
Hash
0xCF61D4B4702EE9EBRuntime name
NetworkGetTotalNumPlayersNamespaceNETWORK
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xCF61D4B4702EE9EBSignature
int NETWORK_GET_TOTAL_NUM_PLAYERS();Returns int
Usage
local retval = NetworkGetTotalNumPlayers()
-- always works, by hash
local retval = Citizen.InvokeNative(0xCF61D4B4702EE9EB, Citizen.ResultAsInteger())JavaScript and C#
const retval = NetworkGetTotalNumPlayers();
// by hash
const retval = Citizen.invokeNative('0xCF61D4B4702EE9EB', Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xCF61D4B4702EE9EB);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.