Data filesClientBlocked

dataarrayAddInt

DATAARRAY_ADD_INT0xCABDB751D86FE93B

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

SignatureJavaScript
dataarrayAddInt(arrayData: null, value: number): void
SignatureLua
dataarrayAddInt(arrayData: nil, value: integer)
✕
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_INT(Any* arrayData, int value)
Hash
0xCABDB751D86FE93B
Formerly
_ARRAY_VALUE_ADD_INTEGER

Open in the interactive natives reference