Data filesClientBlocked

dataarrayGetBool

DATAARRAY_GET_BOOL0x50C1B2874E50C114

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

SignatureJavaScript
dataarrayGetBool(arrayData: null, arrayIndex: number): boolean
SignatureLua
dataarrayGetBool(arrayData: nil, arrayIndex: integer): 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
BOOL DATAARRAY_GET_BOOL(Any* arrayData, int arrayIndex)
Hash
0x50C1B2874E50C114
Formerly
_ARRAY_VALUE_GET_BOOLEAN

Open in the interactive natives reference