PlayerClient

intToParticipantindex

INT_TO_PARTICIPANTINDEX0x9EC6603812C24710

The GTA V native INT_TO_PARTICIPANTINDEX of the PLAYER namespace, as LS:MP client scripts call it: the global function intToParticipantindex, in JavaScript and in Lua.

SignatureJavaScript
intToParticipantindex(value: number): number
SignatureLua
intToParticipantindex(value: integer): integer

Usage

JavaScript
const result = intToParticipantindex(value);
Lua
local result = intToParticipantindex(value)

Parameters

ParameterTypeJavaScriptLua
valueintnumberinteger

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.

Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).


if (networkIsParticipantActive(intToParticipantindex(i)))

Reference

Namespace
Player PLAYER
In the game
int INT_TO_PARTICIPANTINDEX(int value)
Hash
0x9EC6603812C24710

Open in the interactive natives reference