native
menu_additem
Syntax
native menu_additem(menu, const name[], const info[]="", paccess=0, callback=-1);
Description
Adds an item to a menu.
Parameters
| menu | Menu resource identifier. |
|---|---|
| name | Item text to display. |
| info | Item info string for internal information. |
| paccess | Access required by the player viewing the menu. |
| callback | If set to a valid ID from menu_makecallback(), the callback will be invoked before drawing the item. |
Return
This function has no return value.
Error
Invalid menu resource.