The Lab
VEHICLE native

_IS_VEHICLE_DOOR_BROKEN

returns BOOL2 paramsbuild 1207

Returns true if door doorId of vehicle is broken.

Signature

C
BOOL _IS_VEHICLE_DOOR_BROKEN(Vehicle vehicle, int doorId); // 0xE979BB5602AD3402 b1207

Parameters

#NameType
1vehicleVehicle
2doorIdint

Facts

Facts about _IS_VEHICLE_DOOR_BROKEN
Name
_IS_VEHICLE_DOOR_BROKEN
Hash
0xE979BB5602AD3402
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 = Citizen.InvokeNative(0xE979BB5602AD3402, -- _IS_VEHICLE_DOOR_BROKEN
  0, -- Vehicle vehicle
  0 -- int doorId
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0xE979BB5602AD3402", // _IS_VEHICLE_DOOR_BROKEN
  0, // Vehicle vehicle
  0, // int doorId
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0xE979BB5602AD3402, // _IS_VEHICLE_DOOR_BROKEN
  0, // Vehicle vehicle
  0 // int doorId
);
All VEHICLE natives

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