CreateDynamicListItem

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

This method creates a new dynamic list item in a client-side menu.

Syntax

UIMenuDynamicListItem API.createDynamicListItem(string label, string description, string startingItem);

Required Arguments

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


NOTE: This function returns data in UIMenuDynamicListItem type.

Usage example(s)

API.createDynamicListItem(string label, string description, string startingItem);


References