| Property | Value |
|---|---|
| Native Name | _ARE_BOMB_BAY_DOORS_OPEN |
| Hash | 0xD0917A423314BBA8 |
| Return Type | BOOL |
| Parameters | aircraft (Vehicle) |
Description: Returns true when the bomb bay doors of this plane are open. False if they're closed.
Parameters
aircraft(Vehicle) — The vehicle to check the bomb bay doors on.
Examples
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
if AreBombBayDoorsOpen(vehicle) then
print("The doors are open!")
else
print("The doors are closed!")
end
int vehicle = GetVehiclePedIsIn(PlayerPedId(), false);
if (AreBombBayDoorsOpen(vehicle))
{
Debug.WriteLine("The doors are open!");
}
else
{
Debug.WriteLine("The doors are closed!");
}