SetPlayerWeaponAmmo

From GTA Network Wiki
Jump to: navigation, search

SetPlayerWeaponAmmo
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Sets the amount of ammo in the weapon of the player.

Syntax

void NAPI.Player.SetPlayerWeaponAmmo(Client player, WeaponHash weapon, int ammo);

Required Arguments

  • player: parameter input should be in Client type.
  • weapon: parameter input should be in WeaponHash type.
  • ammo: parameter input should be in int type.

Usage example(s)

NAPI.Player.SetPlayerWeaponAmmo(player, WeaponHash.SMG, 500);

Changelog

Version Description
1.0 Release.

References