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

SetPlayerCurrentWeapon

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

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


void NAPI.Player.SetPlayerCurrentWeapon(Player player, WeaponHash weapon);

Parameters

  • player: Parameter input should be in Player type.
  • weapon: Parameter input should be in WeaponHash type.

Example

<syntaxhighlight lang="csharp"> NAPI.Player.SetPlayerCurrentWeapon(player, WeaponHash.Carbinerifle); </syntaxhighlight>