NetworkClient

participantIdToInt

PARTICIPANT_ID_TO_INT0x57A3BDDAD8E5AA0A

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

SignatureJavaScript
participantIdToInt(): number
SignatureLua
participantIdToInt(): integer

Usage

JavaScript
const result = participantIdToInt();
Lua
local result = participantIdToInt()

Parameters

None.

Returns

int JavaScript number, Lua integer

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.

This native is exactly the same as 'participantId' native.

Reference

Namespace
Network NETWORK
In the game
int PARTICIPANT_ID_TO_INT()
Hash
0x57A3BDDAD8E5AA0A

Open in the interactive natives reference