Ugrás a fő tartalomhoz

GetPlayerMenu

Description​

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

NameDescription
playeridThe ID of the player to get the current menu of.

Returns​

The ID of the player's currently shown menu, or INVALID_MENU (255) if no menu shown.

Value returned is tagged with Menu:

Examples​

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

Notes​

tanács

Returns previous menu when none is displayed.