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
06-10-2013, 04:07 PM #47
Originally posted by Ryan
When you do the cfg are you suppose to do it in Notepad++?


you can do it in any programme you like but i would recommend notepad ++
06-10-2013, 11:49 PM #48
How do i add a command to a "say" thing? For example:
"set b1 "say ^3Friendly Fire ON" (then what?) i know that toggeling it on is toggle ui_friendlyfire 1 0;
06-10-2013, 11:55 PM #49
danielburn
Bounty hunter
Nice post dude, i'll do an menu and post the results here, let's see what i can do haha! Thanks in advice...
06-11-2013, 04:07 PM #50
Originally posted by MajesticMajid View Post
How do i add a command to a "say" thing? For example:
"set b1 "say ^3Friendly Fire ON" (then what?) i know that toggeling it on is toggle ui_friendlyfire 1 0;


im not sure what your talking about but im guess this about toggling the function by moving on to the "On" and "OFF" for it to work

for that you need to bind dpad right and when it is on "ON" you just bind [] to that like you do on a normal option
06-13-2013, 10:28 PM #51
I meen for example,you have a menu,the menu says "friendly fire on
"friendly fire off" i want it so that when pressing OFF it goes off and ON it goes on,i tested it on w@w with my test cfg that i was making,but i failed to get the text right,mod worked but menu text said "toggle *bla bla bla*"
06-13-2013, 11:30 PM #52
KadenxC28
Little One
Originally posted by MajesticMajid View Post
I meen for example,you have a menu,the menu says "friendly fire on
"friendly fire off" i want it so that when pressing OFF it goes off and ON it goes on,i tested it on w@w with my test cfg that i was making,but i failed to get the text right,mod worked but menu text said "toggle *bla bla bla*"


set ffon "say ^5F^4riendly ^5F^4ire ^2ON"
set ffoff "say ^5F^4riendly ^5F^4ire ^1OFF"
set func1 "ui_friendlyfire 1"
set func2 "ui_friendlyfire 0"

Hope this helps!
06-25-2013, 12:43 PM #53
Oh mate thanks allot! This finally seems read able hahaha (talking about the codes and functions Smile ) thx!
07-18-2013, 04:13 PM #54
how do you put and option for page 2 in the cfg?
07-22-2013, 05:43 AM #55
cant seem to make the scrolling work on prestige and host menu

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo