NetworkClientBlocked

networkPlayerGetUserid

NETWORK_PLAYER_GET_USERID0x4927FC39CD0869A0

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

SignatureJavaScript
networkPlayerGetUserid(player: Player): [text: string, userID: number]
SignatureLua
networkPlayerGetUserid(player: Player): string, integer
✕
Blocked for scripts: Raw memory and structures

This native reads or fills a memory structure a script has no way to provide, so it is not callable. For entity lists, use lsmp.getGamePool. For JSON, use lsmp.json.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Network NETWORK
In the game
const char* NETWORK_PLAYER_GET_USERID(Player player, int* userID)
Hash
0x4927FC39CD0869A0
Formerly
_NETWORK_PLAYER_GET_USER_ID

Open in the interactive natives reference