SetPlayerWeaponAmmo: Difference between revisions
(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( | {{#tag:pre|void {{Template:CSharp_Serverside_namespace}}Player.SetPlayerWeaponAmmo(Player player, WeaponHash weaponHash, int ammo);}} | ||
{{Parameters}} | {{Parameters}} | ||
*'''player:''' parameter input should be in ''' | *'''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);