Data filesClientBlocked

datadictSetBool

DATADICT_SET_BOOL0x35124302A556A325

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

SignatureJavaScript
datadictSetBool(objectData: null, key: string, value: boolean): void
SignatureLua
datadictSetBool(objectData: nil, key: string, value: boolean)
✕
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_SET_BOOL(Any* objectData, const char* key, BOOL value)
Hash
0x35124302A556A325
Formerly
_OBJECT_VALUE_ADD_BOOLEAN

Open in the interactive natives reference