StatsClientBlocked

getPackedIntStatKey

GET_PACKED_INT_STAT_KEY0x61E111E323419E07

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

SignatureJavaScript
getPackedIntStatKey(
  index: number,
  spStat: boolean,
  charStat: boolean,
  character: number
): Hash
SignatureLua
getPackedIntStatKey(
  index: integer,
  spStat: boolean,
  charStat: boolean,
  character: integer
): Hash
✕
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
Hash GET_PACKED_INT_STAT_KEY(int index, BOOL spStat, BOOL charStat, int character)
Hash
0x61E111E323419E07
Formerly
_GET_PSTAT_INT_HASH

Open in the interactive natives reference