Garry's Mod

Garry's Mod

34 ratings
Auto Command on Start
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun, Roleplay
File Size
Posted
Updated
9.994 KB
20 Aug, 2023 @ 1:11pm
3 Mar @ 12:26pm
2 Change Notes ( view )

Subscribe to download
Auto Command on Start

In 1 collection by Freef
Freef's Misc Mods
43 items
Description
Sets your commands when you join a game / start a server.

Some of us perform certain actions whenever we start in Singleplayer or Multiplayer, for exmaple mat_specular 1 or cl_drawhud 0.

This mod adds a new interface in the Utilities tab to automate this process.

Note that some Server commands such as sv_cheats 1 are locked by Garry. However, you could totally enter this manually and then use the manual run button to run all your cheat commands.

If you have a command that requires several arguments (which in the console you usually seperate with a space), you can just place a semicolon (;). This tells my script to execute it as additional argument. Some multiple-argument commands such as say do not require this.

Warning: This mod will only work on other people's servers if they too have the addon.

If, somehow, you manage to brick your game with this and need to undo the commands, you can just delete the start_command_client/server.json files under (...)\Steam\steamapps\common\GarrysMod\garrysmod\data
19 Comments
Freef  [author] 4 Mar @ 2:29am 
You're welcome!
Jiyū to anzen 3 Mar @ 4:32pm 
Thanks! Now I don't have to use the autoexec file all the time.
Freef  [author] 3 Mar @ 12:34pm 
Updated it, should work now for your needs!
You can edit commands by selecting them, changing them and hitting the update button
You can seperate multiple commands using ; (in the case of your halo command you'd write 255;50;255;255)
Freef  [author] 26 Feb @ 2:47pm 
Thanks! I'll be taking a look at it when I have time :)
Freef  [author] 26 Feb @ 2:29am 
Could you send me the mod? That should make testing things way easier.
Jiyū to anzen 25 Feb @ 3:08pm 
Well in my case there is a mod that does not save the color ConVar after a session. I have to type in w_halo_color 244 222 255 255 - this addon can't seem do it but putting it in the console was fine. I unpacked the code for it and it requires 4 arguments to run so I though that might be why.
Freef  [author] 25 Feb @ 2:43pm 
You're welcome! Also, are you sure multiple arguments currently don't work with this mod? I personally don't know any such commands, other than the say command, and that worked just fine
Jiyū to anzen 25 Feb @ 2:41pm 
Thank you for responding! I think you can wrap commands that use white spaces in one argument into quotation marks- I don’t know though.
Freef  [author] 25 Feb @ 2:36pm 
I *hope* I will be able to make the white space the seperator. I don't know how it will behave with commands such as say Good morning. Doesn't it already work with multiple arguments?