Menu.AddItem Method

Appends a new item to the end of a menu.

bool AddItem(const char[] info, const char[] display, int style)

Parameters

const char[] info

Item information string.

const char[] display

Default item display string.

int style

Drawing style flags. Anything other than DEFAULT or DISABLED will be completely ignored when paginating.

Return Value

True on success, false on failure.

Errors

Item limit reached.