networkGetParticipantIndex
NETWORK_GET_PARTICIPANT_INDEX0x1B84DF6AF2A46938The GTA V native NETWORK_GET_PARTICIPANT_INDEX of the NETWORK namespace, as LS:MP client scripts call it: the global function networkGetParticipantIndex, in JavaScript and in Lua.
networkGetParticipantIndex(index: number): numbernetworkGetParticipantIndex(index: integer): integerUsage
JavaScript
const result = networkGetParticipantIndex(index);Lua
local result = networkGetParticipantIndex(index)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
index | int | number | integer |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Network NETWORK
- In the game
int NETWORK_GET_PARTICIPANT_INDEX(int index)- Hash
0x1B84DF6AF2A46938