Garry's Mod Wiki

Revision Difference

engine.CloseServer#561382

<function name="CloseServer" parent="engine" type="libraryfunc"> <description> Closes the server and completely exits. This is only functional when running in server test mode (launch option -systemtest). Server test mode is used internally at Facepunch as part of the build process to make sure that the dedicated servers aren't crashing on startup. This is only functional when running in server test mode (launch option `-systemtest`). Server test mode is used internally at Facepunch as part of the build process to make sure that the dedicated servers aren't crashing on startup. ⤶ You can also use `-allowquit` which will make this function run `quit keep_players`, which does not forcibly disconnect players.⤶ ⤶ ⤶ </description> <realm>Server</realm> </function>