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-27-2010, 03:44 AM #20
JakeM
ZOMG HaXz!
Originally posted by Newelly View Post
Thanks Man I Appreciate It :bro:


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.



Yep I got a script compile error as well. Bad syntax. /facepalm I'm trying to find it.
12-27-2010, 04:44 AM #21
is it possible to make it so when you keep scrolling down on the menu, you appear above the menu again
12-27-2010, 08:16 AM #22
Default Avatar
x iJB x
Guest
Originally posted by HacksReleaser View Post
Ur Really a Noobie But Hey u Had The Balls 2 Make One Except 1 prob u Cant do shit just tak cod from elitemossy v8.9 k


Newelly's a noob?? Hah! Never heard better bullsh*t anywhere else. He's been editing patches for ages and probably made a few other unreleased patches. You've done sweet fa, so before you go around telling people they're ripping off others work when they blatantly havent, try making your own patch. You'll see how hard it is. And try getting a good rep on the forum? K?

/ontopic

Nice looking patch Newelly, can you get this in a PS3 patch that we can all try out? Happy
12-27-2010, 04:38 PM #23
Merkii
Former Staff
IOts funny how newelly had hunter128's patch and what do you have the title of a leecher that goes around asking for clz nuff salad

---------- Post added at 04:38 PM ---------- Previous post was at 04:38 PM ----------

Originally posted by Clayface View Post
is it possible to make it so when you keep scrolling down on the menu, you appear above the menu again


i dont think so lol
i might try that but im quite a noob
12-27-2010, 04:57 PM #24
Lopez.
[Insert]
Can someone make a video?
12-30-2010, 04:05 AM #25
ok...
1. do i have to jailbrake my ps3 to do any hack?
2. what do i do with the long codes?
3. yes im new to this, so dont make fun of me!
4. i do the things it says in vids n it doesnt work?!?!
5. please someone help!!!!!!!!!!!!!!!!!!!!!!!!!!!
01-01-2011, 12:04 AM #26
Default Avatar
Newelly
Guest
Any Help?

i dont know whats the matter with it :/
my custom was based on this Winky Winky
01-01-2011, 12:21 AM #27
Shieldsy
I <3 Feeder.
Originally posted by IhAkAlOt123 View Post
ok...
1. do i have to jailbrake my ps3 to do any hack?
2. what do i do with the long codes?
3. yes im new to this, so dont make fun of me!
4. i do the things it says in vids n it doesnt work?!?!
5. please someone help!!!!!!!!!!!!!!!!!!!!!!!!!!!


1. I assume by any hack you mean CL as that is what most of the people are on this forum for, in which case yes, you will not be able to host them without having access to a playstation on fw 3.41.
2. You copy the codes into the missions part of the patch (patch_mp.ff)
3+4+5. Hope I helped.

If I am wrong about the missions bit feel free to correct me, I am still not that into coding, but learning..
01-01-2011, 12:32 AM #28
DEREKTROTTER
You're Goddamn Right
cant see any error in that coding? did u say it worked before?

The following user thanked DEREKTROTTER for this useful post:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo