menu_destroy
Destroys a menu. Player menus will be cancelled (although may still linger on the HUD), and future attempts to access the menu resource will result in an error. This must be called if you create menus dynamically, otherwise you will leak memory. For normal dynamic menus, you will destroy the menu in the handler function (remembering to handle the case of a menu being cancelled, it must still be destroyed).
Syntax
native menu_destroy(menu)
Usage
| menu | Menu resource identifier. |
Return
This function has no return value.
Errors
Invalid menu resource.
Defined in
newmenus.inc
at line 285
.
This documentation was automatically generated from source.