NETWORK_GET_TOTAL_NUM_PLAYERS
Returns the total number of players in the session.
Signature
int NETWORK_GET_TOTAL_NUM_PLAYERS(); // 0xCF61D4B4702EE9EB b1207Parameters
This native takes no parameters.
Facts
| Name | NETWORK_GET_TOTAL_NUM_PLAYERS |
|---|---|
| Hash | 0xCF61D4B4702EE9EB |
| Namespace | |
| Returns | int |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xCF61D4B4702EE9EB, -- NETWORK_GET_TOTAL_NUM_PLAYERS
Citizen.ResultAsInteger()
)
print(result)const result = Citizen.invokeNative("0xCF61D4B4702EE9EB", // NETWORK_GET_TOTAL_NUM_PLAYERS
Citizen.resultAsInteger()
);
console.log(result)int result = Function.Call<int>((Hash)0xCF61D4B4702EE9EB); // NETWORK_GET_TOTAL_NUM_PLAYERSRelated NETWORK natives
- NETWORK_GET_TOTAL_NUM_FRIENDS
- NETWORK_GET_NUM_CONNECTED_PLAYERS
- NETWORK_GET_THIS_SCRIPT_IS_NETWORK_SCRIPT
- NETWORK_GET_DESTROYER_OF_NETWORK_ID
- NETWORK_GET_ENTITY_FROM_NETWORK_ID
- NETWORK_GET_MAX_NUM_PARTICIPANTS
- NETWORK_GET_NETWORK_ID_FROM_ENTITY
- NETWORK_GET_NETWORK_ID_FROM_ROPE_ID
- NETWORK_GET_NUM_PARTICIPANTS
- NETWORK_GET_NUM_SCRIPT_PARTICIPANTS
- NETWORK_GET_NUM_UNACKED_RELIABLES
- NETWORK_GET_ROPE_ID_FROM_NETWORK_ID
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.