networkGetNumScriptParticipants
NETWORK_GET_NUM_SCRIPT_PARTICIPANTS0x3658E8CD94FC121AThe GTA V native NETWORK_GET_NUM_SCRIPT_PARTICIPANTS of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetNumScriptParticipants, in JavaScript and in Lua.
networkGetNumScriptParticipants(
scriptName: string,
instance_id: number,
position_hash: number
): numbernetworkGetNumScriptParticipants(
scriptName: string,
instance_id: integer,
position_hash: integer
): integerUsage
JavaScript
const result = networkGetNumScriptParticipants(scriptName, instance_id, position_hash);Lua
local result = networkGetNumScriptParticipants(scriptName, instance_id, position_hash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
scriptName | string | string | string |
instance_id | int | number | integer |
position_hash | int | number | integer |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Network NETWORK
- In the game
int NETWORK_GET_NUM_SCRIPT_PARTICIPANTS(const char* scriptName, int instance_id, int position_hash)- Hash
0x3658E8CD94FC121A