menu_destroy
native menu_destroy(menu);
| Parameter |
Description |
| menu | Menu resource identifier. |
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).
This function has no return value.
Invalid menu resource.