HasPlayerWeaponComponent

From GTA Network Wiki
(Redirected from HasPlayerGotWeaponComponent)
Jump to: navigation, search

HasPlayerWeaponComponent
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Function Description

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);

Changelog

Version Description
1.0 Release.

References