_SET_VEHICLE_BOMB_COUNT
DocsSetVehicleBombCount(aircraft, bombCount)Description
Sets the amount of bombs that this vehicle has. As far as I know, this does not impact vehicle weapons or the ammo of those weapons in any way, it is just a way to keep track of the amount of bombs in a specific plane.
In decompiled scripts this is used to deduct from or add to the count whenever bombs are dropped or purchased/restocked.
Use <code>_GET_AIRCRAFT_BOMB_COUNT</code> to get the amount of bombs on that vehicle.
Parameters
| Name | Type | Description |
|---|---|---|
aircraft | Vehicle | The vehicle to set the bombCount on. |
bombCount | int | The amount of bombs to set for this vehicle. |
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
voidThis native does not return a value.
Examples
Official
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
SetAircraftBombCount(vehicle, 10)