StatsClientBlocked

statGetUserId

STAT_GET_USER_ID0x2365C388E393BBE2

The GTA V native STAT_GET_USER_ID of the STATS namespace, as LS:MP client scripts call it: the global function statGetUserId, in JavaScript and in Lua.

SignatureJavaScript
statGetUserId(statHash: Hash): string
SignatureLua
statGetUserId(statHash: Hash): string
✕
Blocked for scripts: Rockstar accounts and commerce

Resources do not touch Rockstar accounts, Social Club data, GTA$ or the game's online shops. Keep your own economy and profiles on your server, with storage.

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
Stats STATS
In the game
const char* STAT_GET_USER_ID(Hash statHash)
Hash
0x2365C388E393BBE2

Open in the interactive natives reference