ShowMenuForPlayer
From SA-MP Wiki
ShowMenuForPlayer
Shows a menu for a player.
(menuid, playerid)
| menuid | The ID of the menu to show. |
| playerid | The ID of the player to show the menu for. |
This function does not return a specific value.
new Menu:tele; public OnGameModeInit() { tele = CreateMenu(...); return 1; } if(strcmp(cmdtext, "/tele", true) == 0) { ShowMenuForPlayer(tele, 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.
- AddMenuItem: Add an item to a menu.
- SetMenuColumnHeader: Set the header for one of the columns in a menu.
- CreateMenu: Create a 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 selected a row in a menu.
- OnPlayerExitedMenu: Called when a player exits a menu.
