Data filesClientBlocked

datadictGetString

DATADICT_GET_STRING0x3D2FD9E763B24472

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

SignatureJavaScript
datadictGetString(objectData: null, key: string): string
SignatureLua
datadictGetString(objectData: nil, key: string): 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
const char* DATADICT_GET_STRING(Any* objectData, const char* key)
Hash
0x3D2FD9E763B24472
Formerly
_OBJECT_VALUE_GET_STRING

Open in the interactive natives reference