Перейти к содержанию

SetPlayerCurrentWeaponAmmo

Материал из RAGE MP Wiki Archive
Версия от 13:40, 23 декабря 2022; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Sets the weapon ammo of the current weapon of the player (on the hand).


void NAPI.Player.SetPlayerCurrentWeaponAmmo(Player player, int ammo);

Parameters

  • player: Parameter input should be in Player type.
  • ammo: Parameter input should be in int type.

Example

<syntaxhighlight lang="csharp"> NAPI.Player.SetPlayerCurrentWeaponAmmo(player, 9999); </syntaxhighlight>