Garry's Mod

Garry's Mod

46 ratings
In-game server restart
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
File Size
Posted
1.524 KB
11 Oct, 2016 @ 6:34am
1 Change Note ( view )

Subscribe to download
In-game server restart

Description
This lets you restart your server in-game however your host must be able to restart your server from crashes for this to work.

How this works
- Type server_restart into console as superadmin to restart the server!
- A countdown will appear in chat, you can type server_restart again to cancel

Config
- Line 9 'ShouldCrashServer', default is true, when true it crashes the server at the end of the countdown
- Line 64 'OpenCrashMenu', default is false, set to true if you don't have a crash screen and want players to re-connect easily
- Line 65 'SecondsToReconnect', if the menu should open, how long to wait until re-connect

Thanks and I hope you find this useful. Please rate if you do!
7 Comments
ilovepancakes1012 10 Oct, 2021 @ 6:01pm 
Config file*
ilovepancakes1012 10 Oct, 2021 @ 6:01pm 
To config : download it via steam workshop downloader, put the zip and extract it into addons folder for the server, open it, open lua folder, open autorun folder, then thats the lua file.
DeceasedBrain (trueidiot_YT) 16 Feb, 2021 @ 2:23pm 
how config
Teskocf 2 Aug, 2018 @ 12:30pm 
LeadKiller you're not alone ma friend :D
Lead 1 Nov, 2017 @ 10:26pm 
doesn't work on linux server, makes me cry that it doesn't
Ulysses 28 Feb, 2017 @ 2:09pm 
It would be better if it could run rcon, then just make it run "restart" from rcon after the countdown. I'm no good at coding, but I will try it anyway.
Ulysses 26 Feb, 2017 @ 9:51pm 
Will install on server