ShowMenuForPlayer
From SA-MP Wiki
ShowMenuForPlayer
Shows a menu for a player.
(menuid, playerid)
| menuid | The id for the menu to show. |
| playerid | The playerid to show the menu to. |
This function does not return a specific value, it's best to simply ignore it.
public OnGameModeInit() { new Menu:tele; tele = CreateMenu(...); return 1; } if(strcmp(cmdtext, "/menu", 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 of a column.
- CreateMenu: Create a Menu.
