The Lab
VEHICLE native

_DETERMINE_VEHICLE_COMPARTMENT_STATE

returns BOOL3 paramsbuild 1207

Based on its name and signature, here is our best reading:

Determines the compartment state of vehicle for ped, writing it to outState.

Signature

C
BOOL _DETERMINE_VEHICLE_COMPARTMENT_STATE(Any* outState, Vehicle vehicle, Ped ped); // 0x877EA24EB1614495 b1207

Parameters

#NameType
1outStateAny* (out pointer)
2vehicleVehicle
3pedPed

Facts

Facts about _DETERMINE_VEHICLE_COMPARTMENT_STATE
Name
_DETERMINE_VEHICLE_COMPARTMENT_STATE
Hash
0x877EA24EB1614495
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, outState = Citizen.InvokeNative(0x877EA24EB1614495, -- _DETERMINE_VEHICLE_COMPARTMENT_STATE
  Citizen.PointerValueInt(), -- Any* outState
  0, -- Vehicle vehicle
  PlayerPedId(), -- Ped ped
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, outState] = Citizen.invokeNative("0x877EA24EB1614495", // _DETERMINE_VEHICLE_COMPARTMENT_STATE
  Citizen.pointerValueInt(), // Any* outState
  0, // Vehicle vehicle
  PlayerPedId(), // Ped ped
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outStateArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x877EA24EB1614495, // _DETERMINE_VEHICLE_COMPARTMENT_STATE
  outStateArg, // Any* outState
  0, // Vehicle vehicle
  API.PlayerPedId() // Ped ped
);
int outState = outStateArg.GetResult<int>();
All VEHICLE natives

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