HideMenuForPlayer

Description

Hides a menu for a player.

NameDescription
menuidThe ID of the menu to hide. Returned by CreateMenu and passed to OnPlayerSelectedMenuRow.
playeridThe ID of the player that the menu will be hidden for.

Returns

1: The function was executed successfully.

0: The function failed to execute.

Examples

if (strcmp(cmdtext, "/menuhide", true) == 0)
{
new Menu: myMenu = GetPlayerMenu(playerid);
HideMenuForPlayer(myMenu, playerid);
return 1;
}

Notes

tip

Crashes the both server and player if an invalid menu ID given.

Related Functions