NetworkClient

networkGetParticipantIndex

NETWORK_GET_PARTICIPANT_INDEX0x1B84DF6AF2A46938

The 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.

SignatureJavaScript
networkGetParticipantIndex(index: number): number
SignatureLua
networkGetParticipantIndex(index: integer): integer

Usage

JavaScript
const result = networkGetParticipantIndex(index);
Lua
local result = networkGetParticipantIndex(index)

Parameters

ParameterTypeJavaScriptLua
indexintnumberinteger

Returns

int JavaScript number, Lua integer

Reference

Namespace
Network NETWORK
In the game
int NETWORK_GET_PARTICIPANT_INDEX(int index)
Hash
0x1B84DF6AF2A46938

Open in the interactive natives reference