Post: [Beginner] How To Make A CFG Menu
04-10-2013, 09:50 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NGU, today im releasing a tutorial on how to make a cfg menu, please keep in mind this menu will not be amazing it's purely to help teach new people and if you are new to this make sure to read carefully

Step One: Binding Buttons
    
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"


As you can see i have binded my dpad down to activate no clip
binding is important other wise you wouldn't be able to use binds or open a menu

Step Two: Setting Menu Functions
    
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"
set Menu "set cg_chattime 25000;cg_chatheight 8;


Now i have added some stuff so when the dpad up is pressed it will call "menu" as i have put "vstr Menu"
cg_chattime is how long the options will be displayed and cg_chatheight is how many lines of the menu
(You can not have more than 8 lines of a menu using a say menu)

Step Three: Menu Options
    
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"
set Menu "set cg_chattime 25000;cg_chatheight 8;vstr A1x;vstr B1
set Menu1 "set cg_chattime 25000;cg_chatheight 8;vstr A1;vstr B1x

set A1x "say [Account Menu]"
set A1 "say ^5Account Menu"
set B1x "say [Host Menu]"
set B1 "say ^5Host Menu"


So i have now added to options to the menu so when the dpad up is pressed
the options will be displayed but we need to be able to scroll and use functions

Step Four: Menu Scrolling
    
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"
set Menu "set cg_chattime 25000;cg_chatheight 8;vstr A1x;vstr B1;bind dpad_up vstr Menu1;
set Menu1 "set cg_chattime 25000;cg_chatheight 8;vstr A1;vstr B1x;bind dpad_up vstr Menu;

set A1x "say [Account Menu]"
set A1 "say ^5Account Menu"
set B1x "say [Host Menu]"
set B1 "say ^5Host Menu"

So now the menu can scroll upwards and do scroll down use "bind dpad_down"

Step Five: Adding Menu Option Functions
    
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"
set Menu "set cg_chattime 25000;cg_chatheight 8;vstr A1x;vstr B1;bind dpad_up vstr Menu1;bind button_x vstr A1F;
set Menu1 "set cg_chattime 25000;cg_chatheight 8;vstr A1;vstr B1x;bind dpad_up vstr Menu;

set A1x "say [Account Menu]"
set A1 "say ^5Account Menu"
set B1x "say [Host Menu]"
set B1 "say ^5Host Menu"
set C1x "say [Prestige 1]"
set A1F "vstr C1"


"bind button_x" will make it so when i press [] it will use "AF1" and that opens up a sub menu

Step Six: Exiting The Menu
    
set close "bind button_x +usereload;bind button_b +stance; bind dpad_up vstr Menu; bind dpad_down
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"

set Menu "set cg_chattime 25000;cg_chatheight 8;vstr A1x;vstr B1;bind dpad_up vstr Menu1;bind button_x vstr A1F;bind button_b vstr close;

set Menu1 "set cg_chattime 25000;cg_chatheight 8;vstr A1;vstr B1x;bind dpad_up vstr Menu;

set A1x "say [Account Menu]"
set A1 "say ^5Account Menu"
set B1x "say [Host Menu]"
set B1 "say ^5Host Menu"
set C1x "say [Prestige 1]"
set A1F "vstr C1"


I have now binded circle so when it's on the account menu option it will close the menu
The code contains binds being reset so you can't use the menu any longer Only by pressing
dpad up which will open up the menu again

Step Seven: Adding Sub Menu's
    
set Menu "set cg_chattime 25000;cg_chatheight 8;vstr A1x;vstr B1;bind dpad_up vstr Menu1;bind button_x vstr A1F;bind button_b vstr close;

set Menu1 "set cg_chattime 25000;cg_chatheight 8;vstr A1;vstr B1x;bind dpad_up vstr Menu;Bind button_x vstr B1F"

set A1x "say [Account Menu]"
set A1 "say ^5Account Menu"
set B1x "say [Host Menu]"
set B1 "say ^5Host Menu"

set C1x "say [Prestige 1]"
set C2x "say [Prestige 2]"
set C1 "say Prestige 1"
set C2 "say Prestige 2"

set H1x "say [Super Jump]"
set H2x "say [Super Speed]"
set H1 "say Super Jump"
set H2 "say Super Speed"

set A1F "vstr P1"
set B1F "vstr S1"

set P1 "vstr C1x;vstr C2;
set P2 "vstr C1;vstr C2x;

set S1 "vstr H1x;vstr H2;
set S2 "vstr H1;vstr H2x;


Adding a Sub Menu is little more complex and i suggest you better label your functions than i have done so like your main menu you got to make a structure by doing what i have done on "S1" and "S2" then adding scrolling functions, also if it helps put above each sub menu the name so it helps you see which one your editing

Making A Zombie:
    
con_minicon 1;
con_miniconlines 12;
con_minicontime 999;


Making a zombie menu is almost the same as making a multiplayer menu but requires different codes, in order for it to open still use say in each option but use "con_minicon" to enable you to see the menu, "con_miniconlines" is the amount of options you can have within a sub menu 16 is the maximum) and "con_minicontime" is the amount of time a option is displayed for.


I hope this tutorial helped some of you new people out on getting started if you need mods to put into your menu's use a dvar thread, A Clean CFG file and a game save editor to help, leave a comment if you want me explain anything in more depth

You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.
Last edited by Silent Assassin ; 05-09-2013 at 08:29 PM. Reason: Added More Stuff

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

FullMetalJack3t, Jacob-And-Britt, YungGleeshTay_x
07-29-2013, 09:26 AM #56
Originally posted by B3aSt View Post
how do you put and option for page 2 in the cfg?


if you want to add another page you

(this is for binding dpad down) you just call the first option of the second page instead of calling the first option of the first page

hope this makes sense
07-29-2013, 09:32 AM #57
Originally posted by DarKPulSe View Post
cant seem to make the scrolling work on prestige and host menu


if your using the tutorial code from above i wouldn't use it as its not very organize

i would show you how one of my menu looks but it would be very confusing for noobs
08-03-2013, 03:10 PM #58
Correy
I'm the Original
Originally posted by Silent
Hello NGU, today im releasing a tutorial on how to make a cfg menu, please keep in mind this menu will not be amazing it's purely to help teach new people and if you are new to this make sure to read carefully

Step One: Binding Buttons
    
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"


As you can see i have binded my dpad down to activate no clip
binding is important other wise you wouldn't be able to use binds or open a menu

Step Two: Setting Menu Functions
    
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"
set Menu "set cg_chattime 25000;cg_chatheight 8;


Now i have added some stuff so when the dpad up is pressed it will call "menu" as i have put "vstr Menu"
cg_chattime is how long the options will be displayed and cg_chatheight is how many lines of the menu
(You can not have more than 8 lines of a menu using a say menu)

Step Three: Menu Options
    
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"
set Menu "set cg_chattime 25000;cg_chatheight 8;vstr A1x;vstr B1
set Menu1 "set cg_chattime 25000;cg_chatheight 8;vstr A1;vstr B1x

set A1x "say [Account Menu]"
set A1 "say ^5Account Menu"
set B1x "say [Host Menu]"
set B1 "say ^5Host Menu"


So i have now added to options to the menu so when the dpad up is pressed
the options will be displayed but we need to be able to scroll and use functions

Step Four: Menu Scrolling
    
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"
set Menu "set cg_chattime 25000;cg_chatheight 8;vstr A1x;vstr B1;bind dpad_up vstr Menu1;
set Menu1 "set cg_chattime 25000;cg_chatheight 8;vstr A1;vstr B1x;bind dpad_up vstr Menu;

set A1x "say [Account Menu]"
set A1 "say ^5Account Menu"
set B1x "say [Host Menu]"
set B1 "say ^5Host Menu"

So now the menu can scroll upwards and do scroll down use "bind dpad_down"

Step Five: Adding Menu Option Functions
    
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"
set Menu "set cg_chattime 25000;cg_chatheight 8;vstr A1x;vstr B1;bind dpad_up vstr Menu1;bind button_x vstr A1F;
set Menu1 "set cg_chattime 25000;cg_chatheight 8;vstr A1;vstr B1x;bind dpad_up vstr Menu;

set A1x "say [Account Menu]"
set A1 "say ^5Account Menu"
set B1x "say [Host Menu]"
set B1 "say ^5Host Menu"
set C1x "say [Prestige 1]"
set A1F "vstr C1"


"bind button_x" will make it so when i press [] it will use "AF1" and that opens up a sub menu

Step Six: Exiting The Menu
    
set close "bind button_x +usereload;bind button_b +stance; bind dpad_up vstr Menu; bind dpad_down
bind DPAD_DOWN "noclip"
bind DPAD_UP "vstr Menu"

set Menu "set cg_chattime 25000;cg_chatheight 8;vstr A1x;vstr B1;bind dpad_up vstr Menu1;bind button_x vstr A1F;bind button_b vstr close;

set Menu1 "set cg_chattime 25000;cg_chatheight 8;vstr A1;vstr B1x;bind dpad_up vstr Menu;

set A1x "say [Account Menu]"
set A1 "say ^5Account Menu"
set B1x "say [Host Menu]"
set B1 "say ^5Host Menu"
set C1x "say [Prestige 1]"
set A1F "vstr C1"


I have now binded circle so when it's on the account menu option it will close the menu
The code contains binds being reset so you can't use the menu any longer Only by pressing
dpad up which will open up the menu again

Step Seven: Adding Sub Menu's
    
set Menu "set cg_chattime 25000;cg_chatheight 8;vstr A1x;vstr B1;bind dpad_up vstr Menu1;bind button_x vstr A1F;bind button_b vstr close;

set Menu1 "set cg_chattime 25000;cg_chatheight 8;vstr A1;vstr B1x;bind dpad_up vstr Menu;Bind button_x vstr B1F"

set A1x "say [Account Menu]"
set A1 "say ^5Account Menu"
set B1x "say [Host Menu]"
set B1 "say ^5Host Menu"

set C1x "say [Prestige 1]"
set C2x "say [Prestige 2]"
set C1 "say Prestige 1"
set C2 "say Prestige 2"

set H1x "say [Super Jump]"
set H2x "say [Super Speed]"
set H1 "say Super Jump"
set H2 "say Super Speed"

set A1F "vstr P1"
set B1F "vstr S1"

set P1 "vstr C1x;vstr C2;
set P2 "vstr C1;vstr C2x;

set S1 "vstr H1x;vstr H2;
set S2 "vstr H1;vstr H2x;


Adding a Sub Menu is little more complex and i suggest you better label your functions than i have done so like your main menu you got to make a structure by doing what i have done on "S1" and "S2" then adding scrolling functions, also if it helps put above each sub menu the name so it helps you see which one your editing

Making A Zombie:
    
con_minicon 1;
con_miniconlines 12;
con_minicontime 999;


Making a zombie menu is almost the same as making a multiplayer menu but requires different codes, in order for it to open still use say in each option but use "con_minicon" to enable you to see the menu, "con_miniconlines" is the amount of options you can have within a sub menu 16 is the maximum) and "con_minicontime" is the amount of time a option is displayed for.


I hope this tutorial helped some of you new people out on getting started if you need mods to put into your menu's use a dvar thread, A Clean CFG file and a game save editor to help, leave a comment if you want me explain anything in more depth

You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.


would you please like to tell me why you copied and pasted my tutorial without asking?, aka leaching bro
08-03-2013, 07:24 PM #59
Originally posted by Correy View Post
would you please like to tell me why you copied and pasted my tutorial without asking?, aka leaching bro


you have a tutorial?

and i haven't copy and pasted anything it was all typed out
Last edited by Silent Assassin ; 08-03-2013 at 07:32 PM.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo