getVehicleCountermeasureAmmo
GET_VEHICLE_COUNTERMEASURE_AMMO0xF846AA63DF56B804The GTA V native GET_VEHICLE_COUNTERMEASURE_AMMO of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleCountermeasureAmmo, in JavaScript and in Lua.
getVehicleCountermeasureAmmo(vehicle: Vehicle): numbergetVehicleCountermeasureAmmo(vehicle: Vehicle): integerUsage
JavaScript
const result = getVehicleCountermeasureAmmo(vehicle);Lua
local result = getVehicleCountermeasureAmmo(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.
Similar to getVehicleBombAmmo, this gets the amount of countermeasures that are present on this vehicle.
Use setVehicleCountermeasureAmmo to set the current amount.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
int GET_VEHICLE_COUNTERMEASURE_AMMO(Vehicle vehicle)- Hash
0xF846AA63DF56B804- Introduced
- Game build 1180 legacy numbering
- Formerly
_GET_AIRCRAFT_COUNTERMEASURE_COUNT_GET_VEHICLE_COUNTERMEASURE_COUNT