AddCategory

Last Updated2014-10-31
Created At2014-10-31

Adds a category to a TopMenu.

native TopMenuObject AddCategory(const char[] name, TopMenuHandler handler, const char[] cmdname = "", int flags = 0, const char[] info_string = "")

Parameters

const char[] name
Object name (MUST be unique).
Handler for topobj.
const char[] cmdname
Command name (for access overrides).
int flags
Default access flags.
const char[] info_string
Arbitrary storage (max 255 bytes).

Return Value

TopMenuObject A new TopMenuObject ID, or INVALID_TOPMENUOBJECT on failure.