Player::setAmmoInClip: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 May 2024

  • curprev 15:5615:56, 29 May 2024Shr0x talk contribs 693 bytes +693 Created page with " {{ClientsideJsFunction}} {{JSContainer| Sets ammo in clip for given weapon hash, the player must have that weapon in his weapon list. ===Required Params=== *'''weapon:''' {{RageType|number}} *'''ammo:''' {{RageType|number}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> player.setAmmoInClip(weapon, ammo); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> mp.players.local.giveWeapon(mp.game.joaat("weapon_p..."