AddMenuItem
From SA-MP
[edit]
AddMenuItem
Adds an menu item to an specified menu. You can add up to 12 items with AddMenuItem to a menu.
(Menu:menuid, column, title[])
| menuid | The menu id to add an item. |
| column | The column to add the item. |
| title[] | The title for the new menu item |
| Returns | An new item in the Menu. |
new Menu:examplemenu; examplemenu = CreateMenu("Your Menu", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(examplemenu, 0, "Your Item");
[edit]
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- CreateMenu: Create a Menu.
- SetMenuColumnHeader: Set the header of a column.
- DestroyMenu: Delete a Menu.
