Gmod startup commands help?

Post Reply
Ferinsha
A semi-regular
A semi-regular
Posts: 19
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Feb 11, 2013 12:28 pm

Gmod startup commands help?

Post by Ferinsha »

I recently started renting a DarkRP server for Garry's Mod but I have a couple major problems. How can I make it so when the server restarts for map changes these commands automatically are entered on startup?

Sbox_godmode 0
Sbox_noclip 0
Sbox_maxragdolls 0
Sbox_maxlamps 0
Sbox_maxlights 4
Sbox_maxemitters 0
Sbox_maxeffects 0
Sbox_maxdynamite 0
Sbox_maxthrusters 0

I've tried putting 'exec' between each of them and placing that in the server.cfg
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Gmod startup commands help?

Post by soja »

Have you tried putting just the commands in without exec in the server.cfg? The server.cfg is executed every map change.

If you want to separate things, and perhaps make it a bit cleaner, you can create a separate file in /cfg called sbox.cfg (or whatever name you want), put all of your commands in that, then put "exec sbox" in your server.cfg. Every map change it will execute the sbox.cfg file.
Not a NFO employee
Ferinsha
A semi-regular
A semi-regular
Posts: 19
Joined: Mon Feb 11, 2013 12:28 pm

Re: Gmod startup commands help?

Post by Ferinsha »

I did that and from my knowledge of lua it should work. I just don't want to test that theory now because a bunch of people are on my server right now
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Gmod startup commands help?

Post by soja »

setting variables and server cfg's requires no knowledge of lua. no commands require the exec command unless they are config files themselves.
Not a NFO employee
Post Reply