participantId
PARTICIPANT_ID0x90986E8876CE0A83The 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.
participantId(): PlayerparticipantId(): PlayerUsage
JavaScript
const player = participantId();Lua
local player = participantId()Parameters
None.
Returns
Player JavaScript number, Lua integerThe 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