AddMenuItem

From SA-MP Wiki

Jump to: navigation, search

AddMenuItem


Adds an item to a specified menu.


Note: You can only have 12 items per menu.


Parameters:
(Menu:menuid, column, title[])
menuidThe menu id to add an item to.
columnThe column to add the item to.
title[]The title for the new menu item


This function does not return a specific value, it's best to simply ignore it.
new Menu:examplemenu;
examplemenu = CreateMenu("Your Menu", 2, 200.0, 100.0, 150.0, 150.0);
 
AddMenuItem(examplemenu, 0, "item row 1");
AddMenuItem(examplemenu, 1, "item row 2");


Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

In other languages