dataarrayGetCount
DATAARRAY_GET_COUNT0x065DB281590CEA2DThe GTA V native DATAARRAY_GET_COUNT of the DATAFILE namespace, as LS:MP client scripts call it: the global function dataarrayGetCount, in JavaScript and in Lua.
dataarrayGetCount(arrayData: null): numberdataarrayGetCount(arrayData: nil): 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
int DATAARRAY_GET_COUNT(Any* arrayData)- Hash
0x065DB281590CEA2D- Formerly
_ARRAY_VALUE_GET_SIZE