Jump to content

How to make custom exec files


yousifgaming

Recommended Posts

Before we start these commands must be cl(client) commands meaning they can be preformed without sv_cheats

 

first open your gmod folder
File structure should look like this:
<SteamLibraryFolder>\steamapps\common\GarrysMod\
image.png?ex=6519c987&is=65187807&hm=f09

Then go to garrysmod > cfg here where you can create executables in game

image.png?ex=6519c9c6&is=65187846&hm=325

Now here is where you can make custom files for your game and execute them via the console
 

Create a new text file by right clicking > new > text document
image.png?ex=6519ca30&is=651878b0&hm=026

 

Name it anything BUT change the extension as cfg
image.png?ex=6519ca7d&is=651878fd&hm=5b7


For this example im gonna make a simple kill command (Note: Everything here must be a console command)
image.png?ex=6519ca98&is=65187918&hm=f7e

 

Now open up gmod and load into a map to test it out

 

open up your console the default button is ` or ~ it is located underneath escape(ESC) key but i set mine to F3
Then type in
exec "NameOfFile.cfg"

image.png?ex=6519cb5e&is=651879de&hm=d4e

image.png?ex=6519cb56&is=651879d6&hm=0ca

And tadaa! you made a simple executable now you can add any commands it can work in DarkRP here is one example

This executable allows me to put premade laws i want you can change the alias to anything and add any laws also it let me start lottos automatically
image.png?ex=6519cbdb&is=65187a5b&hm=565

 

Here is another one for fun i made to reset my colors back to default cyan the game gives you
image.png?ex=6519cc49&is=65187ac9&hm=a25

 

As you can notice values have to be in "Quotes"

you can use the above example to make preset colors or custom colors like in

Make sure to try these commands if they work in Cloud Gaming before actually using them!

Have fun doing custom stuff like preset binds for different jobs like
1. Weed job for binding seeds and printer charge

2. Moonshine job for binding dank juice and alcohol and printer charge

3. Cocaine job items and printer charge

4. Meth job items and printer charge

5. For custom jobs with all 4 money making methods

6. For admins and mods if you wanna switch between RP and OD

Link to comment
18 hours ago, yousifgaming said:

Before we start these commands must be cl(client) commands meaning they can be preformed without sv_cheats

 

first open your gmod folder
File structure should look like this:
<SteamLibraryFolder>\steamapps\common\GarrysMod\
image.png?ex=6519c987&is=65187807&hm=f09

Then go to garrysmod > cfg here where you can create executables in game

image.png?ex=6519c9c6&is=65187846&hm=325

Now here is where you can make custom files for your game and execute them via the console
 

Create a new text file by right clicking > new > text document
image.png?ex=6519ca30&is=651878b0&hm=026

 

Name it anything BUT change the extension as cfg
image.png?ex=6519ca7d&is=651878fd&hm=5b7


For this example im gonna make a simple kill command
image.png?ex=6519ca98&is=65187918&hm=f7e

 

Now open up gmod and load into a map to test it out

 

open up your console the default button is ` or ~ it is located underneath escape(ESC) key but i set mine to F3
Then type in
exec "NameOfFile.cfg"

image.png?ex=6519cb5e&is=651879de&hm=d4e

image.png?ex=6519cb56&is=651879d6&hm=0ca

And tadaa! you made a simple executable now you can add any commands it can work in DarkRP here is one example

This executable allows me to put premade laws i want you can change the alias to anything and add any laws also it let me start lottos automatically
image.png?ex=6519cbdb&is=65187a5b&hm=565

 

Here is another one for fun i made to reset my colors back to default cyan the game gives you
image.png?ex=6519cc49&is=65187ac9&hm=a25

 

As you can notice values have to be in "Quotes"

you can use the above example to make preset colors or custom colors like in

Make sure to try these commands if they work in Cloud Gaming before actually using them!

Have fun doing custom stuff like preset binds for different jobs like
1. Weed job for binding seeds and printer charge

2. Moonshine job for binding dank juice and alcohol and printer charge

3. Cocaine job items and printer charge

4. Meth job items and printer charge

5. For custom jobs with all 4 money making methods

6. For admins and mods if you wanna switch between RP and OD

more people need to see this, extremely helpful guide ^^^ +rep on god

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...