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-26-2013, 10:36 AM #38
QuantumDev
Can’t trickshot me!
Nice tutorial. Will definitely help the noobs out Happy
Good Job!
05-27-2013, 09:27 PM #39
/SneakerStreet/
At least I can fight
Realy nice tutorialWinky Winky i try to make my own menu.
05-27-2013, 10:21 PM #40
Originally posted by SneakerStreet View Post
Realy nice tutorialWinky Winky i try to make my own menu.


If you need any help just pm me and i will help you out

and thanks for the feedback :P
06-05-2013, 11:41 PM #41
Here are some menu bases if you dont want to code a base
Menu Base 1 You must login or register to view this content.

Menu Base 2 You must login or register to view this content.

I take no credit for these menu bases. All credit goes to: You must login or register to view this content.
06-06-2013, 03:56 PM #42
Originally posted by modcity View Post
Here are some menu bases if you dont want to code a base
Menu Base 1 You must login or register to view this content.

Menu Base 2 You must login or register to view this content.

I take no credit for these menu bases. All credit goes to: You must login or register to view this content.


Tell how this post is useful in anyway for this thread?

The following user thanked Silent Assassin for this useful post:

xKillingSpreez
06-06-2013, 09:40 PM #43
Originally posted by Silent
Tell how this post is useful in anyway for this thread?


Its helpful for the people that are confused on making a base and want a pre-made base, but if you want to you can get the post deleted.
06-06-2013, 09:43 PM #44
Originally posted by modcity View Post
Its helpful for the people that are confused on making a base and want a pre-made base, but if you want to you can get the post deleted.


No its fine im just saying why would someone who wanted to learn how to make a menu want a menu base as they would of simply searched for one rather than come on this thread so it's kinda pointless
06-06-2013, 09:47 PM #45
Originally posted by Silent
No its fine im just saying why would someone who wanted to learn how to make a menu want a menu base as they would of simply searched for one rather than come on this thread so it's kinda pointless


Well I'm sorry I will make sure to think it through more before I reply on a post.
06-09-2013, 11:06 PM #46
When you do the cfg are you suppose to do it in Notepad++?

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo