SetPlayerWeaponAmmo: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Sets players weapon ammo. {{CSharpContainer| {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.SetPlayerWeaponAmmo(Client player, WeaponHash weaponHash, int ammo...")
 
No edit summary
 
Line 2: Line 2:


{{CSharpContainer|
{{CSharpContainer|
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.SetPlayerWeaponAmmo(Client player, WeaponHash weaponHash, int ammo);}}
{{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.SetPlayerWeaponAmmo(Player player, WeaponHash weaponHash, int ammo);}}


{{Parameters}}
{{Parameters}}
*'''player:''' parameter input should be in '''Client''' type   
*'''player:''' parameter input should be in '''Player''' type   
*'''weaponHash:''' parameter input should be in '''WeaponHash''' type   
*'''weaponHash:''' parameter input should be in '''WeaponHash''' type   
*'''ammo:''' parameter input should be in '''int''' type
*'''ammo:''' parameter input should be in '''int''' type

Latest revision as of 13:56, 23 December 2022

Sets players weapon ammo.


C# Syntax

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

Parameters

  • player: parameter input should be in Player type
  • weaponHash: parameter input should be in WeaponHash type
  • ammo: parameter input should be in int type

Example

NAPI.Player.SetPlayerWeaponAmmo(player, WeaponHash.Carbinerifle, 9999);