menu_additem

Syntax

native menu_additem(menu, const name[], const info[]="", paccess=0, callback=-1);

Usage

Parameter Description
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.

Description

Adds an item to a menu.

Return

This function has no return value.

Error

Invalid menu resource.