Revision Difference
engine.CloseServer#568373
<function name="CloseServer" parent="engine" type="libraryfunc">
<description>
Closes the server and completely exits.
To enable this function for use on your server, add `-allowquit` to your commandline, which will make this function run `quit keep_players` when executed, this also does not forcibly disconnect players.
This is also available 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.
</description>
<realm>Server</realm>
<rets><ret type="boolean">`true` if server is about to shutdown, `false` if neither command line parameter is set.</ret><rets>⤶
</function>
Garry's Mod
Rust
Steamworks
Wiki Help