GetPlayerMenu
From SA-MP Wiki
GetPlayerMenu
Gets the id of the menu the player is currently viewing.
(playerid)
| playerid | The playerid to get the menu from |
| Returns | Menu id |
new Menu:CurrentMenu = GetPlayerMenu(playerid); //Store the 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.
- CreateMenu: Creates a new menu
- DestroyMenu: Destroys a menu
- AddMenuItem: Add an item to an existing 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 selects a row in a menu
- OnPlayerExitedMenu: Called when a player exits a menu
