hook when server crashed?

Is there any hook when server restarts/stops/crashes so i could send email to myself that i would know it crashed?

You shouldn’t need that, since your server should restart automatically…

It does, just simple addon for me that i would know that it crashed.

If the server crash, nothing is ran. No.

Just send you an email when the server starts

That would be very annoying if you’re testing stuff or rebooting frequently.

Hook a file write to GM:ShutDown and make your server read that file and clear it on startup. If the file is empty when you read it the ShutDown hook probably never ran and we can assume something happened to the server.