跳到主要内容

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

提示

Returns previous menu when none is displayed.