_ARE_BOMB_BAY_DOORS_OPEN
Docslocal retval = AreBombBayDoorsOpen(aircraft)Description
Returns true when the bomb bay doors of this plane are open. False if they're closed.
Parameters
| Name | Type | Description |
|---|---|---|
aircraft | Vehicle | The vehicle to check the bomb bay doors on. |
Quick Snippet: Get Vehicleaircraft
aircraftUse this to get the current vehicle handle for this native.
-- Get the vehicle the player is currently in
local ped = PlayerPedId()
local vehicle = GetVehiclePedIsIn(ped, false)
if vehicle ~= 0 then
print("Vehicle handle: " .. vehicle)
print("Model: " .. GetEntityModel(vehicle))
else
print("Player is not in a vehicle")
endVehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
BOOLReturns TRUE (1) or FALSE (0).
Examples
Official
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
if AreBombBayDoorsOpen(vehicle) then
print("The doors are open!")
else
print("The doors are closed!")
end