AddMenuItem

From SA-MP

Jump to: navigation, search


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[])
menuidThe menu id to add an item.
columnThe 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");


Related Functions

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

Personal tools