Skip to main content

SetPlayerCurrentWeapon

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

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

{{#tag:syntaxhighlight| Player.SetPlayerCurrentWeapon(player, WeaponHash.Carbinerifle); |lang=csharp}} }}