GetPlayerMenu

From SA-MP Wiki

Jump to: navigation, search


Description:

Gets the ID of the menu the player is currently viewing (shown by ShowMenuForPlayer).


Parameters:
(playerid)
playeridThe ID of the player to get the current menu of.


Return Values:

The ID of the player's currently shown menu, or INVALID_MENU (255) if no menu shown. Value returned is tagged with Menu:.


Image:32px-Ambox_warning_orange.png

Note

Returns previous menu when none is displayed.


Example Usage:

new Menu:CurrentMenu = GetPlayerMenu(playerid); // Store the player's current menu in 'CurrentMenu'

Related Functions

The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

Personal tools
Navigation
Toolbox