HideMenuForPlayer
From SA-MP Wiki
HideMenuForPlayer
Hides a menu for a player.
(menuid, playerid)
| menuid | The ID of the menu to hide. |
| playerid | The ID of the player that the menu will be hidden for. |
This function does not return a specific value.
if(strcmp(cmdtext, "/menuhide", true) == 0) { new myMenu = GetPlayerMenu(playerid); HideMenuForPlayer(myMenu, playerid); return 1; }
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.
- AddMenuItem: Add an item to a menu.
- SetMenuColumnHeader: Set the header for one of the columns in a menu.
- CreateMenu: Create a menu.
