GetPlayerMenu
From SA-MP Wiki
GetPlayerMenu
Gets the ID of the menu the player is currently viewing.
(playerid)
| playerid | The ID of the player to check whether the menu is show for. |
| Returns | The ID of the player's currently shown menu |
new Menu:CurrentMenu = GetPlayerMenu(playerid); // Store the player's current menu in 'CurrentMenu'
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- ShowMenuForPlayer: Show a menu for a player.
- HideMenuForPlayer: Hide a menu for a player.
- CreateMenu: Create a menu.
- DestroyMenu: Destroy a menu.
- AddMenuItem: Add an item to a menu.
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnPlayerSelectedMenuRow: Called when a player selected a row in a menu.
- OnPlayerExitedMenu: Called when a player exits a menu.
