AMX Mod X API Documentation

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

Adds an menu 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.

No return value
Errors
  • Invalid menu resource.
Назад
Верх