SetPlayerCurrentWeapon
Внешний вид
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>