Data filesClientBlocked

dataarrayGetString

DATAARRAY_GET_STRING0xD3F2FFEB8D836F52

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

SignatureJavaScript
dataarrayGetString(arrayData: null, arrayIndex: number): string
SignatureLua
dataarrayGetString(arrayData: nil, arrayIndex: integer): 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* DATAARRAY_GET_STRING(Any* arrayData, int arrayIndex)
Hash
0xD3F2FFEB8D836F52
Formerly
_ARRAY_VALUE_GET_STRING

Open in the interactive natives reference