setWeaponClipSize( <weapon name>, <clip size> )


Module: Weapons

Summary:

Set new clip size to a weapon



Example:

clipSize = 20;
setWeaponClipSize(weaponName, clipSize);



Required Args:

  • 1 : <weapon name>: (string) The weapon name for this weapon.
  • 2 : <clip size> New clip size to set


Deprecated Args:

  • 1 : <id> Weapon id (available for backwards compatibility). You can get it with getLoadedWeapons()