CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Basic GSC Coding/ Noob Friendly Tutorial
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Syndicate" data-source="post: 4158" data-attributes="member: 2417"><p>This is a small tutorial explaining some GSC Basic Scripting!</p><p></p><p>Before we begin, id like to make it clear that i do not support editing menus and calling them yours! aka leeching!</p><p></p><p>Things i will cover in this tutorial;</p><p>- Editing Shaders</p><p>- adding a simple function</p><p>- understanding/using #includes</p><p>- setting up</p><p>- a little about the syntax</p><p></p><p>I will be using one of my own menus as an example, but what i will be covering will be identical.</p><p></p><p><strong>Setting Up</strong></p><p>their are alot of programs you to create a GSC you can use;</p><p>Notepad ++</p><p>GSC Studio- highly recommended</p><p>limepad</p><p>etc</p><p></p><p><strong>Editing the shaders</strong></p><p></p><p>when editing the shaders, you cant really be wrong when changing the value of the numbers, this is where your artistic skills come in!.</p><p></p><p><img src="http://i.imgur.com/BJEICco.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>this is where the shaders are stored, this can be found under Storeshaders, Shaders etc, but all menus will have it somewhere!.</p><p></p><p>to understand the numbers use this as note in your script. //x, y, width and height</p><p>so the number after the bracket represent the x axis, y axis, width then height!</p><p>the brackets before these number (em_bg_ani_octane) are also shaders you can use to add to your menu, but you must precache them in your init(), i will explain this more later on.</p><p></p><p>editing the menus colours;</p><p>the numbers inside these brackets represent the RGB of your shaders, you can change the colour of your background and scroller, also other things like text which i will talk about later.</p><p><img src="http://i.imgur.com/KFKca8h.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>Below are some preset colors you can test;</p><p>Blue- (0, 0, 1)</p><p>Red- (1, 0, 0)</p><p>Green- (0, 1, 0)</p><p></p><p>you can either continue to use number like 255 to assign colors use 0-1 to make it easier to make color shades, also their are RGB color sites where this come useful, ill leave a link at end of the tutorial.</p><p></p><p>Editing the text!;</p><p><img src="http://i.imgur.com/4U6Cegk.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>This is where you would edit your menus text, for example move where you want the text to be, make the text larger etc.</p><p>(CENTER,TOP, -7, 10); - This is the coordinates of where your text will be, feel free to mess around with the numbers! once again their is no right and wrong with this! however if you want it to be in line with your shaders consider the value between them both!.</p><p></p><p><strong>Adding a simple function</strong></p><p><strong></strong></p><p>this part requires a little more concentration as it can easily go wrong and freeze your menu! for this example we will be adding God Mode!.</p><p></p><p>first of all understand your "Menu Structure", this is an important part of your menu!</p><p></p><p><img src="http://i.imgur.com/kL89PIJ.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>this is where your submenus are stored, for example your "main mods menu", feel free to change the names if they are blank like mine.</p><p></p><p>how to change the sub menu names? - self addOption("", "Can Change this, submenu::, "leave this", "Change this");</p><p>the reason i say leave this is because this is where the submenus link, ill explain more in next part!.</p><p><img src="http://i.imgur.com/todd9fh.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>this is inside the submenu, where you will add functions etc, if you wanted to change the submenu names, you must also rename inside of this, for example rename the "SubMenu1" to whatever you called it in the submenu storage (above picture).</p><p></p><p>"Option1" is what the name will be for the function!, for this tutorial rename it to "God Mode".(or anything you want!)</p><p></p><p>behind the "::" is what you will be calling!, this must match the rest of the function or your game will freeze on load!. look at the picture below to understand more!.</p><p><img src="http://i.imgur.com/IJ38rEY.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p>now i will explain the rest on how to add a function,</p><p><img src="http://i.imgur.com/8cU7Scb.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p>this is the rest of your function, also the receiving end of what you were calling in your Menu System.</p><p>i recommend adding a separate script file called "Functions" to organize your code better and make it easier to find your functions encase you make an error sometimes.</p><p></p><p>At the end of the tutorial i will add links to functions, GSC Studio, other resources you can use!</p><p></p><p><strong>Understanding the #includes</strong></p><p><strong></strong></p><p>at the top of your script, or in main.gsc, you will see these!. think of this as info from another file, so when you are adding these, you are adding contents from other gsc files into yours, then you can add stuff to your menu!, if you are using a "Menu Base" then you should already have the important ones you need!</p><p></p><p>however this code-</p><p>self maps\mp\_gscfile::funcName()</p><p>would allow you to add to your menu/script without including it, i suggest sticking to the #includes if you are new to GSC Modding!.</p><p></p><p>i will update this thread soon with how to:</p><p>-add weapon scripts</p><p>-changing action slots/ used to assign controls for your menu</p><p>-much more!</p><p></p><p>Links;</p><p><a href="https://imcsx.co/?dl=446" target="_blank">https://imcsx.co/?dl=446</a> - GSC Studio</p><p><a href="http://ps3cfw.com/ShaderPreview/" target="_blank">http://ps3cfw.com/ShaderPreview/</a> - Shader Previewer! (doesn't work for internet explorer, install opera)</p><p><a href="http://www.ps3cfw.com/gscRGB/index.php" target="_blank">ps3CFW.com/gscRGB/</a> -RGB Colour Editor</p><p><a href="http://cabconmodding.com/threads/c-bo2-code-thread.141/" target="_blank">[C++] Bo2 CODE THREAD | CabConModding</a> -Functions Thread</p><p><a href="http://www.file-upload.net/download-10659453/StonedYodas-Menubase.zip.html" target="_blank">File-Upload.net - StonedYodas-Menubase.zip</a> - 1 of the best menu bases</p><p></p><p>Credits;</p><p>[USER=2417]@ConnorWardx[/USER] - For making the tutorial!</p><p>[USER=1392]@thahitcrew[/USER] - For his web tools!</p><p>[USER=15]@Alt[/USER] - For his Functions thread!</p><p>[USER=1]@CabCon[/USER] - Learning from his previous tutorials</p><p>[USER=520]@StonedYoda[/USER] -For his Menu Base</p></blockquote><p></p>
[QUOTE="Syndicate, post: 4158, member: 2417"] This is a small tutorial explaining some GSC Basic Scripting! Before we begin, id like to make it clear that i do not support editing menus and calling them yours! aka leeching! Things i will cover in this tutorial; - Editing Shaders - adding a simple function - understanding/using #includes - setting up - a little about the syntax I will be using one of my own menus as an example, but what i will be covering will be identical. [B]Setting Up[/B] their are alot of programs you to create a GSC you can use; Notepad ++ GSC Studio- highly recommended limepad etc [B]Editing the shaders[/B] when editing the shaders, you cant really be wrong when changing the value of the numbers, this is where your artistic skills come in!. [IMG]http://i.imgur.com/BJEICco.png[/IMG] this is where the shaders are stored, this can be found under Storeshaders, Shaders etc, but all menus will have it somewhere!. to understand the numbers use this as note in your script. //x, y, width and height so the number after the bracket represent the x axis, y axis, width then height! the brackets before these number (em_bg_ani_octane) are also shaders you can use to add to your menu, but you must precache them in your init(), i will explain this more later on. editing the menus colours; the numbers inside these brackets represent the RGB of your shaders, you can change the colour of your background and scroller, also other things like text which i will talk about later. [IMG]http://i.imgur.com/KFKca8h.png[/IMG] Below are some preset colors you can test; Blue- (0, 0, 1) Red- (1, 0, 0) Green- (0, 1, 0) you can either continue to use number like 255 to assign colors use 0-1 to make it easier to make color shades, also their are RGB color sites where this come useful, ill leave a link at end of the tutorial. Editing the text!; [IMG]http://i.imgur.com/4U6Cegk.png[/IMG] This is where you would edit your menus text, for example move where you want the text to be, make the text larger etc. (CENTER,TOP, -7, 10); - This is the coordinates of where your text will be, feel free to mess around with the numbers! once again their is no right and wrong with this! however if you want it to be in line with your shaders consider the value between them both!. [B]Adding a simple function [/B] this part requires a little more concentration as it can easily go wrong and freeze your menu! for this example we will be adding God Mode!. first of all understand your "Menu Structure", this is an important part of your menu! [IMG]http://i.imgur.com/kL89PIJ.png[/IMG] this is where your submenus are stored, for example your "main mods menu", feel free to change the names if they are blank like mine. how to change the sub menu names? - self addOption("", "Can Change this, submenu::, "leave this", "Change this"); the reason i say leave this is because this is where the submenus link, ill explain more in next part!. [IMG]http://i.imgur.com/todd9fh.png[/IMG] this is inside the submenu, where you will add functions etc, if you wanted to change the submenu names, you must also rename inside of this, for example rename the "SubMenu1" to whatever you called it in the submenu storage (above picture). "Option1" is what the name will be for the function!, for this tutorial rename it to "God Mode".(or anything you want!) behind the "::" is what you will be calling!, this must match the rest of the function or your game will freeze on load!. look at the picture below to understand more!. [IMG]http://i.imgur.com/IJ38rEY.png[/IMG] now i will explain the rest on how to add a function, [IMG]http://i.imgur.com/8cU7Scb.png[/IMG] this is the rest of your function, also the receiving end of what you were calling in your Menu System. i recommend adding a separate script file called "Functions" to organize your code better and make it easier to find your functions encase you make an error sometimes. At the end of the tutorial i will add links to functions, GSC Studio, other resources you can use! [B]Understanding the #includes [/B] at the top of your script, or in main.gsc, you will see these!. think of this as info from another file, so when you are adding these, you are adding contents from other gsc files into yours, then you can add stuff to your menu!, if you are using a "Menu Base" then you should already have the important ones you need! however this code- self maps\mp\_gscfile::funcName() would allow you to add to your menu/script without including it, i suggest sticking to the #includes if you are new to GSC Modding!. i will update this thread soon with how to: -add weapon scripts -changing action slots/ used to assign controls for your menu -much more! Links; [URL]https://imcsx.co/?dl=446[/URL] - GSC Studio [URL]http://ps3cfw.com/ShaderPreview/[/URL] - Shader Previewer! (doesn't work for internet explorer, install opera) [URL='http://www.ps3cfw.com/gscRGB/index.php']ps3CFW.com/gscRGB/[/URL] -RGB Colour Editor [URL='http://cabconmodding.com/threads/c-bo2-code-thread.141/'][C++] Bo2 CODE THREAD | CabConModding[/URL] -Functions Thread [URL='http://www.file-upload.net/download-10659453/StonedYodas-Menubase.zip.html']File-Upload.net - StonedYodas-Menubase.zip[/URL] - 1 of the best menu bases Credits; [USER=2417]@ConnorWardx[/USER] - For making the tutorial! [USER=1392]@thahitcrew[/USER] - For his web tools! [USER=15]@Alt[/USER] - For his Functions thread! [USER=1]@CabCon[/USER] - Learning from his previous tutorials [USER=520]@StonedYoda[/USER] -For his Menu Base [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Basic GSC Coding/ Noob Friendly Tutorial
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top