Skip to main content

GivePlayerWeaponComponent

Syntax

```csharp void NAPI.Player.SetPlayerWeaponComponent(Client player, WeaponHash weapon, WeaponComponent component); ```

Required Arguments

  • player: parameter input should be in Client type.
  • weapon: parameter input should be in WeaponHash type.
  • component: parameter input should be in WeaponComponent type.

Usage example(s)

Example Description

```csharp NAPI.Player.SetPlayerWeaponComponent(player, weapon, component); ```