DestroyMenu
Description:
Function DestroyMenu destroys the specified menu.
Parameters:
(menuid)
int | menuid | The menu ID to destroy. |
Return Values:
True if the destroying was successful, otherwise false
Examples:
new Menu:examplemenu; examplemenu = CreateMenu("Your Menu", 2, 200.0, 100.0, 150.0, 150.0); // ... DestroyMenu(examplemenu);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- CreateMenu: Create a menu.
- SetMenuColumnHeader: Set the header for one of the columns in a menu.
- AddMenuItem: Add an item to a menu.
Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.
- OnPlayerSelectedMenuRow: Called when a player selected a row in a menu.
- OnPlayerExitedMenu: Called when a player exits a menu.