DATAARRAY_GET_COUNT
Hash
0x6A885BF69239E539Runtime name
DataarrayGetCountNamespaceDATAFILE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x065DB281590CEA2DSignature
int DATAARRAY_GET_COUNT(Any* arrayData);Parameters
| Name | Type | Description |
|---|---|---|
arrayData | Any* | — |
Returns int
Usage
local retval, arrayData = DataarrayGetCount(arrayData)
-- always works, by hash
local retval, arrayData = Citizen.InvokeNative(0x6A885BF69239E539, Citizen.PointerValueIntInitialized(arrayData), Citizen.ResultAsInteger())JavaScript and C#
const [retval, arrayData] = DataarrayGetCount(arrayData);
// by hash
const [retval, arrayData] = Citizen.invokeNative('0x6A885BF69239E539', Citizen.pointerValueIntInitialized(arrayData), Citizen.returnResultAnyway(), Citizen.resultAsInteger());var arrayData = new OutputArgument();
int retval = Function.Call<int>((Hash)0x6A885BF69239E539, arrayData);
// arrayData.GetResult<int>()- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.