DATAARRAY_GET_BOOL
Returns the boolean stored at arrayIndex in the data array arrayData.
Signature
BOOL DATAARRAY_GET_BOOL(Any* arrayData, int arrayIndex); // 0xAB1231D2DE52F2D3 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | arrayData | Any* (out pointer) |
| 2 | arrayIndex | int |
Facts
| Name | DATAARRAY_GET_BOOL |
|---|---|
| Hash | 0xAB1231D2DE52F2D3 |
| Namespace | |
| Returns | BOOL |
| 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(0xAB1231D2DE52F2D3, -- DATAARRAY_GET_BOOL
Citizen.PointerValueInt(), -- Any* arrayData
0, -- int arrayIndex
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, arrayData] = Citizen.invokeNative("0xAB1231D2DE52F2D3", // DATAARRAY_GET_BOOL
Citizen.pointerValueInt(), // Any* arrayData
0, // int arrayIndex
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var arrayDataArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xAB1231D2DE52F2D3, // DATAARRAY_GET_BOOL
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.