DATAARRAY_GET_INT
Hash
0x96DEA500B6EBBE53Runtime name
DataarrayGetIntNamespaceDATAFILE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x3E5AE19425CD74BESignature
int DATAARRAY_GET_INT(Any* arrayData, int arrayIndex);Parameters
| Name | Type | Description |
|---|---|---|
arrayData | Any* | — |
arrayIndex | int | — |
Returns int
Usage
local retval, arrayData = DataarrayGetInt(arrayIndex)
-- always works, by hash
local retval, arrayData = Citizen.InvokeNative(0x96DEA500B6EBBE53, Citizen.PointerValueInt(), arrayIndex, Citizen.ResultAsInteger())JavaScript and C#
const [retval, arrayData] = DataarrayGetInt(arrayIndex);
// by hash
const [retval, arrayData] = Citizen.invokeNative('0x96DEA500B6EBBE53', Citizen.pointerValueInt(), arrayIndex, Citizen.returnResultAnyway(), Citizen.resultAsInteger());var arrayData = new OutputArgument();
int retval = Function.Call<int>((Hash)0x96DEA500B6EBBE53, arrayData, arrayIndex);
// arrayData.GetResult<int>()- Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
Any*arguments are often structs. Build them with a DataView buffer and pass it with:Buffer()— see the examples and notes below.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.