First of all it is not a real Restarter, it just stops the server you need an external script to automaticly restart it after my script stopped your server!
Link to the Addon:
https://github.com/captain1242/LUA-Codes/tree/master/GMod%20Addons/server_auto_restarterDescription:This script Automaticly restarts your server every day at local 3 o'clock AM. It "annoys" you with Messages 1 Hour, 30 Minutes, 15 Minutes, 10 Minutes and 5-1 Minutes before the restart then it Kicks all players with reason:
"Server Restart! \nTry connecting in 5 Minutes! \nIf the server isn't online then \nplease contact an Admin!"
It also adds serval In-Game commands and Permissions to those commands ( Warning you need ULX )
Commands are:In Game:!restart - Restarts server Instantly
!rs menu - Opens the RestartSystem Menu
!rs abort - Disables Auto Restart
!rs autorestart - Enables Auto Restart
Server Console:autorestart_abort - Disables Auto Restart
autorestart_restart - Enables Auto Restart
If you want to change anything on it such as Restart time or "annoying" messages feel free to modify the code.
Why I made this script? Well one of my servers beginns to lag due to serval internet updates of scripts like VCmod so I need to restart the server every day but I am too lazy to do that manually so I made this script real quick