Data filesClientBlocked

dataarrayAddBool

DATAARRAY_ADD_BOOL0xF8B0F5A43E928C76

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

SignatureJavaScript
dataarrayAddBool(arrayData: null, value: boolean): void
SignatureLua
dataarrayAddBool(arrayData: nil, 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 DATAARRAY_ADD_BOOL(Any* arrayData, BOOL value)
Hash
0xF8B0F5A43E928C76
Formerly
_ARRAY_VALUE_ADD_BOOLEAN

Open in the interactive natives reference