Skip to main content

SetPlayerCurrentWeapon

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

C#​

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​

NAPI.Player.SetPlayerCurrentWeapon(player, WeaponHash.Carbinerifle);