ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setWeaponClipAmmo

Function

setWeaponClipAmmo

ServerWeaponsIdentical to MTA:SA

Sets the number of rounds in a scripted weapon's clip.

Syntax

bool setWeaponClipAmmo(weapon weapon, int clipAmmo)

Arguments

weaponweapon
The scripted weapon.
clipAmmoint
Rounds in the clip.

Returns

true on success.

Example

setWeaponClipAmmo(turret, 30)

See also