VehicleClient

getVehicleBombAmmo

GET_VEHICLE_BOMB_AMMO0xEA12BD130D7569A1

The 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.

SignatureJavaScript
getVehicleBombAmmo(vehicle: Vehicle): number
SignatureLua
getVehicleBombAmmo(vehicle: Vehicle): integer

Usage

JavaScript
const result = getVehicleBombAmmo(vehicle);
Lua
local result = getVehicleBombAmmo(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

int JavaScript number, Lua integer

Notes

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

Open in the interactive natives reference