Post: New Mod Menu Made By Me :)
12-24-2010, 02:33 AM #1
Default Avatar
Newelly
Guest
(adsbygoogle = window.adsbygoogle || []).push({});
Please Note: This Is My 1st Ever Mod Menu Attempt
Please Note: This Was Based On DConnors Mod Menu ( Cred. To Him)
Please Note: Thanks To JakeM501 Finding The "<" And ">" Errors Thanks (Credits To Him)
[/B]

Heres The Script:
    
onPlayerSpawned(){
self endon( "disconnect" );
if(self isHost()){
}
for(;Winky Winky{
self waittill( "spawned_player" );
self thread menu();
self thread maps\mp\gametypes\_hud_message::hintMessage( "Press [{+actionslot 2}] for Menu" );
}
}
notifyAllCommands(){
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" ); //Menu
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" ); //Scroll Down
self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" ); //scroll left
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" ); //scroll right
self notifyOnPlayerCommand( "button_ltrig", "+toggleads_throw" );
self notifyOnPlayerCommand( "button_rtrig", "attack" );
self notifyOnPlayerCommand( "button_rshldr", "+frag");
self notifyOnPlayerCommand( "button_lshldr", "+smoke");
self notifyOnPlayerCommand( "button_rstick", "+melee");
self notifyOnPlayerCommand( "button_lstick", "+breath_sprint");
self notifyOnPlayerCommand( "button_a", "+gostand" ); //Select
self notifyOnPlayerCommand( "button_b", "+stance" ); //Go Back
self notifyOnPlayerCommand( "button_x", "+usereload " );
self notifyOnPlayerCommand( "button_y", "weapnext" );
self notifyOnPlayerCommand( "button_back", "togglescores" );
}
//on death set self.menuIsOpen to false;
menu(){
self endon( "disconnect" );
self endon( "death" );
self.cycle = 0;
self.scroll = 1;
self.getMenu = ::getMenu;
notifyAllCommands();
self thread listenUpside Down Happy:iniMenu, "button_x" );
}
iniMenu(){
if( self.MenuIsOpen == false ){
_openMenu();
self thread drawMenu( self.cycle, self.scroll);
self thread listenMenuEvent( ::cycleRight, "dpad_right" );
self thread listenMenuEvent( ::cycleLeft, "dpad_left" );
self thread listenMenuEvent( ::scrollUp, "dpad_up" );
self thread listenMenuEvent( ::scrollDown, "dpad_down" );
self thread listenMenuEvent( ::select, "button_a" );
self thread runOnEvent( ::exitMenu, "button_b" );
}
}
select(){
menu = [[self.getMenu]]();
self thread [[ menu[self.cycle].function[self.scroll] ]]( menu[self.cycle].input[self.scroll] );
}
cycleRight(){
self.cycle++;
self.scroll = 1;
checkCycle();
drawMenu( self.cycle, self.scroll);
}
cycleLeft(){
self.cycle--;
self.scroll = 1;
checkCycle();
drawMenu( self.cycle, self.scroll);
}
scrollUp(){
self.scroll--;
checkScroll();
drawMenu( self.cycle, self.scroll);
}
scrollDown(){
self.scroll++;
checkScroll();
drawMenu( self.cycle, self.scroll);
}
exitMenu(){
self.MenuIsOpen = false;
self freezeControls(false);
}
updateMenuTimer()
{
wait 2;
self thread updateMenu();
}
updateMenu(){
drawMenu( self.cycle, self.scroll );
}
updateMenu(){
drawMenu( self.cycle, self.scroll );
}
_openMenu(){
self.MenuIsOpen = true;
self freezeControls(true);
menu = [[self.getMenu]]();
self.numMenus = menu.size;
self.menuSize = [];
for(i = 0; i < self.numMenus; i++)
self.menuSize[i] = menu[i].name.size;
}
checkCycle(){
if(self.cycle > self.numMenus - 1){
self.cycle = self.cycle - self.numMenus;
}
else if(self.cycle < 0){
self.cycle = self.cycle + self.numMenus;
}
}
checkScroll(){
if(self.scroll < 1){
self.scroll = 1;
}
else if(self.cycle < 0){
self.scroll = self.menuSize[self.cycle] - 1;
}
}
drawMenu( cycle, scroll ){
menu = [[self.getMenu]]();
display = [];
//display other menu options left/right
if( menu.size > 2 ){
leftTitle = self createFontString( "objective", 2.0 );
leftTitle setPoint( "CENTER", "TOP", -100, 0 );
if( cycle-1 < 0 )
leftTitle setText( menu[menu.size - 1].name[0] );
else
leftTitle setText( menu[cycle - 1].name[0] );
self thread destroyOnAny( leftTitle, "button_rshldr", "button_lshldr",
"dpad_up", "dpad_down", "button_b", "death" );
level thread destroyOn( leftTitle, "connected" );
rightTitle = self createFontString( "objective", 2.0 );
rightTitle setPoint( "CENTER", "TOP", 100, 0 );
if( cycle > menu.size - 2 )
rightTitle setText( menu[0].name[0] );
else
rightTitle setText( menu[cycle + 1].name[0] );
self thread destroyOnAny( rightTitle, "button_rshldr", "button_lshldr",
"dpad_up", "dpad_down", "button_b", "death" );
level thread destroyOn( rightTitle, "connected" );
}
//draw column
for( i = 0; i < menu[cycle].name.size; i++ ){
if(i < 1)
display[i] = self createFontString( "objective", 2.0 );//The menu title
else
display[i] = self createFontString( "objective", 1.3 );
display[i] setPoint( "CENTER", "TOP", 0, i*20 );
if(i == scroll)
display[i] setText( "^1" + menu[cycle].name[i] );//Colour option
else
display[i] setText( menu[cycle].name[i] );
self thread destroyOnAny( display[i], "button_rshldr", "button_lshldr",
"dpad_up", "dpad_down", "button_b", "death" );
level thread destroyOn( display[i], "connected" );
}
}
listenMenuEvent( function, event ){
self endon ( "disconnect" );
self endon ( "death" );
self endon ( "button_b" );
for(;Winky Winky{
self waittill( event );
self thread [[function]]();
}
}
runOnEvent( function, event ){
self endon ( "disconnect" );
self endon ( "death" );
self waittill( event );
self thread [[function]]();
}
destroyOn( element, event ){
self waittill( event );
element destroy();
}
destroyOnAny( element, event1, event2, event3, event4, event5, event6, event7, event8 ){
self waittill_any( event1, event2, event3, event4, event5, event6, event7, event8 );
element destroy();
}
openSubMenu(){
self notify( "button_b" );
wait .01;
oldMenu = [[self.getMenu]]();
self.input = oldMenu[self.cycle].input[self.scroll];
self.oldCycle = self.cycle;
self.oldScroll = self.scroll;
self.cycle = 0;
self.scroll = 1;
self.getMenu = ::getSubMenu_Menu;
_openMenu();
self thread drawMenu( self.cycle, self.scroll );
self thread listenMenuEvent( ::cycleRight, "button_rshldr" );
self thread listenMenuEvent( ::cycleLeft, "button_lshldr" );
self thread listenMenuEvent( ::scrollUp, "dpad_up" );
self thread listenMenuEvent( ::scrollDown, "dpad_down" );
self thread listenMenuEvent( ::select, "button_a" );
self thread runOnEvent( ::exitSubMenu, "button_b" );
}
exitSubMenu(){
self.getMenu = ::getMenu;
self.cycle = self.oldCycle;
self.scroll = self.oldScroll;
self.menuIsOpen = false;
wait .01;
self notify( "button_b" );
}
getSubMenu_Menu(){
menu = [];
menu[0] = getSubMenu_SubMenu1();
return menu;
}
getSubMenu_SubMenu1(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "SubMenu Options";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
getMenu(){
menu = [];
menu[0] = getSubMenu1();
menu[1] = getSubMenu2();
menu[2] = getSubMenu3();
menu[3] = getSubMenu4();
menu[4] = getSubMenu5();
if(self isHost()){
menu[menu.size] = getPlayerMenu();
menu[menu.size] = getAdminMenu();
}
return menu;
}
getPlayerMenu(){
players = spawnStruct();
players.name = [];
players.function = [];
players.input = [];
players.name[0] = "Players";
for( i = 0; i < level.players.size; i++ ){
players.name[i+1] = level.players[i].name;
players.function[i+1] = :: openSubMenu;
players.input[i+1] = level.players[i];
}
return players;
}
//^0 = Black Be Sure To Change Smile
getAdminMenu(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^0Admin";
menu.name[1] = "admin option";
menu.name[2] = "admin option";
menu.name[3] = "admin option";
menu.name[4] = "admin option";
menu.name[5] = "admin option";
menu.function[1] = ::;
menu.function[2] = ::;
menu.function[3] = ::;
menu.function[4] = ::;
menu.function[5] = ::;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
//^5 = Cyan Be Sure To Change Smile
getSubMenu1(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^5Title Here";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
//^6 = Pink Be Sure To Change Smile
getSubMenu2(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^6Title Here";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
//^5 = Cyan Be Sure To Change Smile
getSubMenu3(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^5Title Here";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
//^6 = Pink Be Sure To Change Smile
getSubMenu4(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^6Title Here";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}
//^0 = Black Be Sure To Change Smile
getSubMenu5(){
menu = spawnStruct();
menu.name = [];
menu.function = [];
menu.input = [];
menu.name[0] = "^0Title Here";
menu.name[1] = "Menu Option Here";
menu.name[2] = "Menu Option Here";
menu.name[3] = "Menu Option Here";
menu.name[4] = "Menu Option Here";
menu.name[5] = "Menu Option Here";
menu.function[1] = ;
menu.function[2] = ;
menu.function[3] = ;
menu.function[4] = ;
menu.function[5] = ;
menu.input[1] = "";
menu.input[2] = "";
menu.input[3] = "";
menu.input[4] = "";
menu.input[5] = "";
return menu;
}


//Thanks Newelly...


"All Commands Are Self Explanatry"

    
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" ); //Scroll Up
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" ); //Scroll Down
self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" ); //scroll left
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" ); //scroll right
self notifyOnPlayerCommand( "button_a", "+gostand" ); //Select
self notifyOnPlayerCommand( "button_b", "+stance" ); //Go Back


Menu = Square
Scroll Up - Dpad
Scroll Down - Dpad Down
Scroll Right - Dpad Right
Scroll Left - Dpad Left
Select - X
Back - Circle

Please Report Any Bugs And Please Dont Flame ;'Winky Winky

//Thanks Newelly...
[/B]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to Newelly for this useful post:

Ju1cy, UMD
12-25-2010, 03:47 AM #11
AlabamaHit
ROLL TIDE!!!
I'm still laughing at the guy taht said you have to put in PS3 buttons, and take out xbox buttons LOL

The following 3 users say thank you to AlabamaHit for this useful post:

Albanian', CHAOZ
12-25-2010, 04:57 AM #12
CHAOZ
Banned
buttons used are coded with universal coding.

Besides that he is on Playstation anyway.
12-25-2010, 08:51 PM #13
nice mod menu attempt bro.. hope u get better. Happy Happy

The following user thanked Duran1 for this useful post:

Mr.Azoz
12-26-2010, 05:52 AM #14
Rath
Today Will Be Different
Hey man I tested your menu/script for you, and I got a "Script compile error, bad syntax" which obviously means that there is a bug in your coding.. Thought I'd give you a heads up. I'm gonna try to debug it, but I'm almost certain that its the coding.. I didn't get a script compile error at all with DConners menu. But I will look through your coding for you and let you know if I find it.
12-26-2010, 08:07 AM #15
Smile awesome dawggy
12-26-2010, 08:27 PM #16
Kakashii
Can’t trickshot me!
Umm can u post a video of it??
12-26-2010, 09:58 PM #17
Merkii
Former Staff
Originally posted by xXRathXx View Post
Hey man I tested your menu/script for you, and I got a "Script compile error, bad syntax" which obviously means that there is a bug in your coding.. Thought I'd give you a heads up. I'm gonna try to debug it, but I'm almost certain that its the coding.. I didn't get a script compile error at all with DConners menu. But I will look through your coding for you and let you know if I find it.


i'd say your using it wrong or you just pasted it in and left no function in it
12-26-2010, 10:06 PM #18
Rath
Today Will Be Different
Originally posted by ginjlovestohack View Post
i'd say your using it wrong or you just pasted it in and left no function in it


No... I can show you what I had in it... trust me, I've made and used menus before... I'm actually making my own menu based of of DConners.

But then again who knows. But oh well, I'd rather work with mine Smile But thanks for the help Gin :love: But I'm still gonna look through his coding etc to see if there are any scripting errors.
12-26-2010, 10:22 PM #19
Default Avatar
Newelly
Guest
Originally posted by xXRathXx View Post
No... I can show you what I had in it... trust me, I've made and used menus before... I'm actually making my own menu based of of DConners.

But then again who knows. But oh well, I'd rather work with mine Smile But thanks for the help Gin :love: But I'm still gonna look through his coding etc to see if there are any scripting errors.


Thanks Man I Appreciate It :bro:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo