DoesPlayerHaveWeapon

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

Returns whether the local player has the specified weapon or not.

Syntax

In Javascript
Client-Side Function

API.doesPlayerHaveWeapon(int weapon);

Required Arguments

  • weapon: parameter input should be in int type.

NOTE: This function returns data in bool type.

Usage example(s)

In Javascript
Client-Side Function

API.doesPlayerHaveWeapon(int weapon);

References