DATAARRAY_GET_DICT
Returns the dictionary stored at arrayIndex in the data array arrayData.
Signature
Any* DATAARRAY_GET_DICT(Any* arrayData, int arrayIndex); // 0xA010655985853485 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | arrayData | Any* (out pointer) |
| 2 | arrayIndex | int |
Facts
| Name | DATAARRAY_GET_DICT |
|---|---|
| Hash | 0xA010655985853485 |
| Namespace | |
| Returns | Any* |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, arrayData = Citizen.InvokeNative(0xA010655985853485, -- DATAARRAY_GET_DICT
Citizen.PointerValueInt(), -- Any* arrayData
0, -- int arrayIndex
Citizen.ResultAsInteger()
)
print(result, arrayData)const [result, arrayData] = Citizen.invokeNative("0xA010655985853485", // DATAARRAY_GET_DICT
Citizen.pointerValueInt(), // Any* arrayData
0, // int arrayIndex
Citizen.resultAsInteger()
);
console.log(result, arrayData)var arrayDataArg = new OutputArgument();
int result = Function.Call<int>((Hash)0xA010655985853485, // DATAARRAY_GET_DICT
arrayDataArg, // Any* arrayData
0 // int arrayIndex
);
int arrayData = arrayDataArg.GetResult<int>();Related DATAFILE natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.