cmenuitem:

Format:

cmenuitem: name, id, "text"

Adds a menu item to a previously created menu. Name must be the same as the name used in cmenu:. Items will be displayed in the order they are added to the menu. A cmenu can have a maximum of 25 menu items.

Parameters:

name: The menu name used in cmenu:.
id: A number that specifies the id of the menu item. cshowmenu: will return this id when the  enter key is pressed.
text: A string of the menu item text.