VehicleClient

setVehicleBombAmmo

SET_VEHICLE_BOMB_AMMO0xF4B2ED59DEB5D774

The GTA V native SET_VEHICLE_BOMB_AMMO of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleBombAmmo, in JavaScript and in Lua.

SignatureJavaScript
setVehicleBombAmmo(vehicle: Vehicle, bombCount: number): void
SignatureLua
setVehicleBombAmmo(vehicle: Vehicle, bombCount: integer)

Usage

JavaScript
setVehicleBombAmmo(vehicle, bombCount);
Lua
setVehicleBombAmmo(vehicle, bombCount)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
bombCountintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

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.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_BOMB_AMMO(Vehicle vehicle, int bombCount)
Hash
0xF4B2ED59DEB5D774
Introduced
Game build 1180 legacy numbering
Formerly
_SET_VEHICLE_BOMBS _SET_AIRCRAFT_BOMB_COUNT _SET_VEHICLE_BOMB_COUNT

Open in the interactive natives reference