Garry's Mod Wiki

Garry's Mod Wiki

  GM:ShutDown()

Description

Called whenever the Lua environment is about to be shut down, for example on map change, or when the server is going to shut down.

Example

Prints into the players chat: Server Is Restarting..

hook.Add( "ShutDown", "ServerShuttingDown", function() Entity( 1 ):PrintMessage( HUD_PRINTTALK, "Server Is Restarting." ) end )
Output: Server Is Restarting. When then the server is Shutting down, etc.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...