getVehicleBombAmmo
GET_VEHICLE_BOMB_AMMO0xEA12BD130D7569A1The GTA V native GET_VEHICLE_BOMB_AMMO of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleBombAmmo, in JavaScript and in Lua.
getVehicleBombAmmo(vehicle: Vehicle): numbergetVehicleBombAmmo(vehicle: Vehicle): integerUsage
JavaScript
const result = getVehicleBombAmmo(vehicle);Lua
local result = getVehicleBombAmmo(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Gets 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
int GET_VEHICLE_BOMB_AMMO(Vehicle vehicle)- Hash
0xEA12BD130D7569A1- Introduced
- Game build 1180 legacy numbering
- Formerly
_GET_AIRCRAFT_BOMB_COUNT_GET_VEHICLE_BOMB_COUNT