player_menu_info

Returns information about a menu (if any) the client is currently viewing.

Syntax

native player_menu_info(id, &menu, &newmenu, &menupage=0)

Usage

id Client index.
menu Variable to store old menu id. If none, then <1 will be
newmenu Variable to store new menu id. If none, then -1 will be
menupage Variable to store current page of the new menu, if any.

Return

1 — if the player is viewing a menu, 0 otherwise.

Notes

If newmenu is valid, then the menu will refer to the menuid associated with

Both may be invalid if the player is not viewing a menu.

Errors

Invalid client.

Defined in newmenus.inc at line 305 . This documentation was automatically generated from source.