The Lab
DATAFILE native

DATAARRAY_GET_BOOL

returns BOOL2 paramsbuild 1207

Returns the boolean stored at arrayIndex in the data array arrayData.

Signature

C
BOOL DATAARRAY_GET_BOOL(Any* arrayData, int arrayIndex); // 0xAB1231D2DE52F2D3 b1207

Parameters

#NameType
1arrayDataAny* (out pointer)
2arrayIndexint

Facts

Facts about DATAARRAY_GET_BOOL
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.

Lua
local result, arrayData = Citizen.InvokeNative(0xAB1231D2DE52F2D3, -- DATAARRAY_GET_BOOL
  Citizen.PointerValueInt(), -- Any* arrayData
  0, -- int arrayIndex
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, arrayData] = Citizen.invokeNative("0xAB1231D2DE52F2D3", // DATAARRAY_GET_BOOL
  Citizen.pointerValueInt(), // Any* arrayData
  0, // int arrayIndex
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
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>();
All DATAFILE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.