ShowWeaponPurchasedMessage

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


Shows a weapon purchased message

WeaponPurchasedMessage.jpg







Syntax

API.showWeaponPurchasedMessage(string bigMessage, string weaponName, int weapon, int time = 5000);

Required Arguments

  • bigMessage: parameter input should be in string type.
  • weaponName: parameter input should be in string type.
  • weapon: parameter input should be in int type.

Optional Arguments

  • time: parameter input should be in int type. Default value: 5 seconds (5000 ms)

Usage example(s)

API.showWeaponPurchasedMessage("WeaponPurchasedMessage", "Weapon Name", -270015777, 5000);

References