setVehicleBombAmmo
SET_VEHICLE_BOMB_AMMO0xF4B2ED59DEB5D774The 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.
setVehicleBombAmmo(vehicle: Vehicle, bombCount: number): voidsetVehicleBombAmmo(vehicle: Vehicle, bombCount: integer)Usage
JavaScript
setVehicleBombAmmo(vehicle, bombCount);Lua
setVehicleBombAmmo(vehicle, bombCount)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
bombCount | int | number | integer |
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