DATAARRAY_GET_TYPE
Returns an integer code for the type of the value stored at arrayIndex in arrayData.
Check the type before calling the matching DATAARRAY_GET_* native.
Signature
int DATAARRAY_GET_TYPE(Any* arrayData, int arrayIndex); // 0x151DAFE6B3B9888F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | arrayData | Any* (out pointer) |
| 2 | arrayIndex | int |
Facts
| Name | DATAARRAY_GET_TYPE |
|---|---|
| Hash | 0x151DAFE6B3B9888F |
| Namespace | |
| Returns | int |
| 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(0x151DAFE6B3B9888F, -- DATAARRAY_GET_TYPE
Citizen.PointerValueInt(), -- Any* arrayData
0, -- int arrayIndex
Citizen.ResultAsInteger()
)
print(result, arrayData)const [result, arrayData] = Citizen.invokeNative("0x151DAFE6B3B9888F", // DATAARRAY_GET_TYPE
Citizen.pointerValueInt(), // Any* arrayData
0, // int arrayIndex
Citizen.resultAsInteger()
);
console.log(result, arrayData)var arrayDataArg = new OutputArgument();
int result = Function.Call<int>((Hash)0x151DAFE6B3B9888F, // DATAARRAY_GET_TYPE
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.