Data filesClientBlocked

datadictGetDict

DATADICT_GET_DICT0xB6B9DDC412FCEEE2

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

SignatureJavaScript
datadictGetDict(objectData: null, key: string): void
SignatureLua
datadictGetDict(objectData: nil, key: string)
✕
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
void DATADICT_GET_DICT(Any* objectData, const char* key)
Hash
0xB6B9DDC412FCEEE2
Formerly
_OBJECT_VALUE_GET_OBJECT

Open in the interactive natives reference