A module for Garry's Mod that allows you to safely shut down the server from Lua
- Download the appropriate file from Releases
- Place it in your server's
lua/bin
folder - Restart your server
server.exit()
Before shutdown, the Lua ShutDown hook will be called for your cleanup code.