HasPlayerWeaponComponent

From GT-MP
Jump to: navigation, search
HasPlayerWeaponComponent
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Returns whether the local player has the specified component equipped on the specified weapon.

Syntax

In Javascript
Client-Side Function

API.hasPlayerWeaponComponent(int weapon, int component);

Required Arguments

  • weapon: parameter input should be in int type.
  • component: parameter input should be in int type.

NOTE: This function returns data in bool type.

Usage example(s)

In Javascript
Client-Side Function

API.hasPlayerWeaponComponent(int weapon, int component);

References