CreateColoredItem

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

Client-side Function Description


Syntax

API.createColoredItem(string label, string description, string hexColor, string hexHighlightColor);

Required Arguments

  • label: parameter input should be in string type.
  • description: parameter input should be in string type.
  • hexColor: parameter input should be in string type.
  • hexHighlightColor: parameter input should be in string type.

NOTE: This function returns data in UIMenuColoredItem type.


Default hexColor: #000000

Default hexHighlightColor: ?

Usage example(s)

API.createColoredItem(string label, string description, string hexColor, string hexHighlightColor);

References