Garry's Mod Wiki

host_quit

Description

Called only in the specific realm when the game is existing.

This is not called reliable serverside.

Example

This is a basic template with the purpose of including all arguments / table variables to make it easily known which values can be accessed.

gameevent.Listen( "host_quit" ) hook.Add( "host_quit", "host_quit_example", function() // Called when the client is quitting the game. end )