CreateMenu

From SA-MP Wiki

Jump to: navigation, search

CreateMenu


Creates a menu. Every menu can be shown to (ShowMenuForPlayer) or hidden from (HideMenuForPlayer) a player and finally every menu can be destroyed using DestroyMenu.


Important note: You can only have 12 rowsper menu and the limit of menus is 128


Parameters:
(title[], columns, Float:x, Float:y, Float:col1width, Float:col2width)
title[]The title for the new menu
columnsHow many colums shall the new menu have
Float:xThe position of the menu (0,0) is in upper left
Float:yThe position of the menu
Float:col1width The width for the first column
Float:col2width The width for the second column


ReturnsThe ID of the new menu.


new Menu:examplemenu;
    examplemenu = CreateMenu("Your Menu", 2, 200.0, 100.0, 150.0, 150.0);

See {[Creating_a_simple_Menu|THIS]] for a tutorial!

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.

Personal tools