Post: adding page 2 to a submenu
04-08-2016, 06:44 PM #1
Apex_Modz-
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); can someone please show me how to add a sub menu to a sub menu i cant figure it out i can get it to pretty much open page 2 but all it does is open it i can see "add option" which i put on for page 2 but i also get everything from page 1 coming up as well
(adsbygoogle = window.adsbygoogle || []).push({});
04-09-2016, 12:34 AM #2
Hydrogen
Super Mod
Originally posted by Apex
can someone please show me how to add a sub menu to a sub menu i cant figure it out i can get it to pretty much open page 2 but all it does is open it i can see "add option" which i put on for page 2 but i also get everything from page 1 coming up as well


Found this script for you:

buildMenu()
{
self.menus = []; // stores our menus

addMenu("", "main", "Simple Menu");
addMenu("main", "Sub1", "Sub Menu 1");
addOption("Sub1", "Option 1");
addOption("Sub1", "Option 2");
addOption("Sub1", "Option 3");
addOption("Sub1", "Option 4");
addOption("Sub1", "Option 5");
addMenu("main", "Sub2", "Sub Menu 2");
addOption("Sub2", "Option 1");
addOption("Sub2", "Option 2");
addOption("Sub2", "Option 3");
addOption("Sub2", "Option 4");
addOption("Sub2", "Option 5");

buildPlayerMenu();
}


Tell me if it worked or not!

The following user thanked Hydrogen for this useful post:

Apex_Modz-
04-09-2016, 12:54 AM #3
Apex_Modz-
Do a barrel roll!
its all good i figured it out i did it like this

self add_option("sub4", "Next Page", ::submenu, "sub44", "Maps Menu");
self add_menu("sub44", "sub4", "Verified");
04-09-2016, 02:13 AM #4
Apex_Modz-
Do a barrel roll!
Originally posted by Hydrogen View Post
Found this script for you:

buildMenu()
{
self.menus = []; // stores our menus

addMenu("", "main", "Simple Menu");
addMenu("main", "Sub1", "Sub Menu 1");
addOption("Sub1", "Option 1");
addOption("Sub1", "Option 2");
addOption("Sub1", "Option 3");
addOption("Sub1", "Option 4");
addOption("Sub1", "Option 5");
addMenu("main", "Sub2", "Sub Menu 2");
addOption("Sub2", "Option 1");
addOption("Sub2", "Option 2");
addOption("Sub2", "Option 3");
addOption("Sub2", "Option 4");
addOption("Sub2", "Option 5");

buildPlayerMenu();
}


Tell me if it worked or not!


do you know how to add another submenu to the players list thats the only one i cant work out
04-09-2016, 02:21 AM #5
Hydrogen
Super Mod
Originally posted by Apex
do you know how to add another submenu to the players list thats the only one i cant work out


I found this for you:



Oh, that is actualy relitivly straight forward.

Guessing you have the client menu added already, already,

Just add a new option with a subenu and add it to your client menu like so:

Code:
self add_menu_alt("pOpt " + i, "PlayersMenu"); <-- Client Menu
self add_option("pOpt " + i, "^6Page 2", ::submenu, "pOpt_ " + i, "Page 1");
<-- Page 2

After you have added your page to the client menu, then make the menu that the option opens.
Then add your functions to it

Code:
self add_menu("pOpt_ " + i, "pOpt " + i); <-- Page 2
self add_option("pOpt_ " + i, "Text Here", ::FunctionHere);
self add_option("pOpt_ " + i, "Text Here", ::FunctionHere);
self add_option("pOpt_ " + i, "Text Here", ::FunctionHere);
<-- Functions

If you do go and rename the "pOpt_ ", make sure you keep the + i, as that identifies the player.

Hope I helped, if I didn't explain it very well, feel free to pm me or sumin, ill try my best to help you out
04-09-2016, 02:24 AM #6
Apex_Modz-
Do a barrel roll!
thanks man ill give it a shot now
04-09-2016, 02:29 AM #7
Hydrogen
Super Mod
Originally posted by Apex
thanks man ill give it a shot now


Tell me if it everything works out fine or not! I'm here if you need me with anything.
04-10-2016, 08:20 AM #8
Apex_Modz-
Do a barrel roll!
Originally posted by Hydrogen View Post
Tell me if it everything works out fine or not! I'm here if you need me with anything.


i couldnt get the second page to work in the players list
04-10-2016, 08:23 AM #9
Hydrogen
Super Mod
Originally posted by Apex
i couldnt get the second page to work in the players list


Don't know how to help you there then buddy. I suggest you tell a moderator to close this original thread so you can create a new one about your new problem instead of discussing it on your old problem. You'll get more attention about your new problem there.
04-13-2016, 08:01 AM #10
i can help you with the second page in playermenu, adme on skype: tijntje2295

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo