PlayerClient

networkPlayerIdToInt

NETWORK_PLAYER_ID_TO_INT0xEE68096F9F37341E

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

SignatureJavaScript
networkPlayerIdToInt(): number
SignatureLua
networkPlayerIdToInt(): integer

Usage

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

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.

Does exactly the same thing as playerId()

Reference

Namespace
Player PLAYER
In the game
int NETWORK_PLAYER_ID_TO_INT()
Hash
0xEE68096F9F37341E

Open in the interactive natives reference