VEHICLE

SET_VEHICLE_WEAPON_RESTRICTED_AMMO

0x44CD1F493DB2A0A6

Signature

// VEHICLE
void SET_VEHICLE_WEAPON_RESTRICTED_AMMO(Vehicle vehicle, int weaponIndex, int capacity)

Parameters

Type Name
Vehicle vehicle
int weaponIndex
int capacity

Return type void

Build 944

Former names

  • _SET_VEHICLE_WEAPON_CAPACITY

Documentation

Set vehicle's primary mounted weapon 2 ammo. For example, use it on APC. For example, you can "remove" any vehicle weapon from any vehicle. ammoAmount -1 = infinite ammo (default value for any spawned vehicle tho)

APPI RP

Join us on FiveM

Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.