ShowMenuForPlayer

From SA-MP Wiki

Jump to: navigation, search


Shows a menu for a player.


Parameters:
(menuid, playerid)
menuidThe ID of the menu to show.
playeridThe ID of the player to show the menu for.


Returns1 if succeeded, 0 if failed


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 may be useful, as they are related to this function in one way or another.


Related Callbacks

The following callbacks might be useful, as they're related to this function in one way or another.

Personal tools
In other languages