Skip to main content

HasPlayerGotWeaponComponent

Syntax

```csharp bool NAPI.Player.HasPlayerWeaponComponent(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.

NOTE: This function returns data in bool type.

Usage example(s)

Example Description

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