getVehicleWeaponRestrictedAmmo
GET_VEHICLE_WEAPON_RESTRICTED_AMMO0x8181CE2F25CB9BB7The GTA V native GET_VEHICLE_WEAPON_RESTRICTED_AMMO of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleWeaponRestrictedAmmo, in JavaScript and in Lua.
getVehicleWeaponRestrictedAmmo(vehicle: Vehicle, weaponIndex: number): numbergetVehicleWeaponRestrictedAmmo(
vehicle: Vehicle,
weaponIndex: integer
): integerUsage
JavaScript
const result = getVehicleWeaponRestrictedAmmo(vehicle, weaponIndex);Lua
local result = getVehicleWeaponRestrictedAmmo(vehicle, weaponIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
weaponIndex | int | number | integer |
Returns
int JavaScript number, Lua integerReference
- Namespace
- Vehicle VEHICLE
- In the game
int GET_VEHICLE_WEAPON_RESTRICTED_AMMO(Vehicle vehicle, int weaponIndex)- Hash
0x8181CE2F25CB9BB7- Introduced
- Game build 1011 legacy numbering
- Formerly
_GET_VEHICLE_WEAPON_CAPACITY