HasPlayerGotWeaponComponent

From RAGE Multiplayer Wiki

Syntax

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

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