Menu of the journey
#3

new Menu:MENUVARIABLE;// this is the variable that will hold the menu for further use;

on a callback or function, sample ongamemodeinit, add the following

public OnGameModeInit()
{
// (title) (amount collumns) (coordinates and width + height)
MENUVARIABLE = CreateMenu("THE MENU TITLE", 1, 55.0, 200.0, 300.0, 240.0);
//(targetmenu) (collumn where it should be placed)(default = 0 (item text)
AddMenuItem(MENUVARIABLE, 0, "Itemsnumber 1");
AddMenuItem(MENUVARIABLE, 0, "Exit menu");
}

//to show it, simply
ShowMenuForPlayer(MENUVARIABLE,playerid);
Reply


Messages In This Thread
Menu of the journey - by P_I_M_P - 06.03.2009, 17:37
Help please Me (menu) - by P_I_M_P - 06.03.2009, 17:41
Re: Menu of the journey - by maij - 06.03.2009, 17:52
Re: Menu of the journey - by P_I_M_P - 06.03.2009, 18:00
Re: Menu of the journey - by P_I_M_P - 06.03.2009, 18:09
Re: Menu of the journey - by CJ101 - 06.03.2009, 19:51
Re: Menu of the journey - by Hot - 06.03.2009, 21:09
Re: Menu of the journey - by P_I_M_P - 07.03.2009, 06:46

Forum Jump:


Users browsing this thread: 1 Guest(s)