NetworkClient

participantId

PARTICIPANT_ID0x90986E8876CE0A83

The GTA V native PARTICIPANT_ID of the NETWORK namespace, as LS:MP client scripts call it: the global function participantId, in JavaScript and in Lua.

SignatureJavaScript
participantId(): Player
SignatureLua
participantId(): Player

Usage

JavaScript
const player = participantId();
Lua
local player = participantId()

Parameters

None.

Returns

Player JavaScript number, Lua integer

The game's own player index: a local slot, as playerId() returns it. Not an LS:MP playerId.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Return the local Participant ID

Reference

Namespace
Network NETWORK
In the game
Player PARTICIPANT_ID()
Hash
0x90986E8876CE0A83

Open in the interactive natives reference