if(self isVerified())//make sure to include which type of verification can access the current submenu
{
A="A";//I usually do this to keep the code short
add_option(self.AIO["menuName"], "Sub Menu 1", ::submenu, A, "Sub Menu 1");
add_menu(A, self.AIO["menuName"], "Sub Menu 1");
add_option(A, "God Mode", ::InfiniteHealth, true);
add_option(A, "Option 2", ::test);
add_option(A, "Option 3", ::test);
add_option(A, "Option 4", ::test);
}
//Here is the same thing as above, but just adding a submenu within another submenu
if(self isVerified())
{
A="A";K="K";//make sure to add the new submenu name
add_option(self.AIO["menuName"], "Sub Menu 1", ::submenu, A, "Sub Menu 1");
add_menu(A, self.AIO["menuName"], "Sub Menu 1");
add_option(A, "God Mode", ::InfiniteHealth, true);
add_option(A, "Option 2", ::test);
add_option(A, "NEW SUBMENU", ::submenu, K, "NEW SUBMENU");
add_menu(K, A, "NEW SUBMENU");
add_option(K, "New Option", ::test);
add_option(K, "New Option 2", ::test);
add_option(A, "Option 4", ::test);
}
Mikey for being the original creator of the AIO Mod Menu
Shark for his menu base
Loz for suggestions/help
xepixtvx for adding infinite scrolling
Sygnus for testing verification
YouViolateMe because i always credit him
destroyMenu()
{
self.MenuInit = false;
self notify("destroyMenu");
self freezeControlsallowlook(false);
self disableInvulnerability();
// Freezes when destroying the menu and giving it again
/* if(isDefined(self.AIO["options"]))//do not remove this
{
for(i = 0; i < self.AIO["options"].size; i++)
{
self.AIO["options"][i] destroy();
}
}
self setClientUiVisibilityFlag("hud_visible", true);
self.menu.open = false;
wait 0.05;
// Destroys hud elements
self.AIO["backgroundouter"] destroyElem();
self.AIO["barclose"] destroyElem();
self.AIO["background"] destroyElem();
self.AIO["scrollbar"] destroyElem();
self.AIO["bartop"] destroyElem();
self.AIO["barbottom"] destroyElem();
// Destroys text elements
self.AIO["title"] destroy();
self.AIO["closeText"] destroy();
self.AIO["status"] destroy();*/
}
Copyright © 2024, NextGenUpdate.
All Rights Reserved.