_SET_VEHICLE_BOMB_COUNT
// SetVehicleBombCount
void _SET_VEHICLE_BOMB_COUNT(Vehicle aircraft, int bombCount);
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 _GET_AIRCRAFT_BOMB_COUNT
to get the amount of bombs on that vehicle.
Old name: _SET_VEHICLE_BOMBS
Old name: _SET_AIRCRAFT_BOMB_COUNT
Examples:
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
SetAircraftBombCount(vehicle, 10)