Is there anyway to make my gmod server restart every 24 hours ?
There’s a program called SeDirector (https://ashersoftware.com/seDirector/download/) which allows for tasks, like restarting/updating etc whenever you want. It’s free but there’s payed-for options.
If you don’t want to do that, using crons on Linux, or Task Scheduler on Windows depending on your OS might allow you to forcefully close SRCDS at a certain time of day, which would then be restarted if you have that restart on crash code in your batch file that I found with a quick google:
An alternative to the code above would be http://serverdoc.com/