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
05-07-2013, 05:59 PM #29
this hack for mp or sp ? meaning for multiplayer or zombies ?
05-08-2013, 04:04 PM #30
Originally posted by Latof View Post
this hack for mp or sp ? meaning for multiplayer or zombies ?


this tut is for multiplayer

but i will soon be adding a zombie tut also as it's different
05-08-2013, 06:23 PM #31
philipeininger
Treasure hunter
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

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.


Great Tutorial.

The following user thanked philipeininger for this useful post:

/SneakerStreet/
05-19-2013, 08:41 AM #32
Originally posted by philipeininger View Post
Great Tutorial.


Thanks :P
05-24-2013, 03:07 PM #33
imSnaYxoHD
Save Point
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.


Great For People using CFG Winky Winky good job Happy
05-25-2013, 08:56 AM #34
how do you make it so you can actually exit the menu?
05-25-2013, 11:21 AM #35
Originally posted by IMPACTxX View Post
how do you make it so you can actually exit the menu?


Make a bind like so
    
bind button_b vstr close;


Then use this code (you can change the binds)
    
set close "bind button_rstick +melee;bind button_x +usereload; bind button_a +gostand; bind button_b +stance; bind dpad_up vstr Menu; bind dpad_right +actionslot 4; bind dpad_down +actionslot 2; bind dpad_left +actionslot 3;

What this does it resets the buttons to default expect for the "dpad_up" as you wont be able to reopen the menu, this also applies to any other binds you use like: (bind dpad_left "noclip")

So if you had other binds aswell:
    
set close "bind button_rstick +melee;bind button_x +usereload; bind button_a +gostand; bind button_b +stance; bind dpad_up vstr Menu; bind dpad_right +actionslot 4; bind dpad_down +actionslot 2; bind dpad_left noclip;


Hope this clears things up
05-25-2013, 04:19 PM #36
thanks mate.
05-26-2013, 09:58 AM #37
Originally posted by IMPACTxX View Post
thanks mate.


no problem, happy to help

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo