Data filesClientBlocked

datadictGetInt

DATADICT_GET_INT0x78F06F6B1FB5A80C

The GTA V native DATADICT_GET_INT of the DATAFILE namespace, as LS:MP client scripts call it: the global function datadictGetInt, in JavaScript and in Lua.

SignatureJavaScript
datadictGetInt(objectData: null, key: string): number
SignatureLua
datadictGetInt(objectData: nil, key: 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
Data files DATAFILE
In the game
int DATADICT_GET_INT(Any* objectData, const char* key)
Hash
0x78F06F6B1FB5A80C
Formerly
_OBJECT_VALUE_GET_INTEGER

Open in the interactive natives reference