Garry's Mod Wiki

Revision Difference

gameevent/host_quit#548677

<cat>gameevent</cat> <title>host_quit</title> <structure> <realm>Client</realm> <description> Called when the client is quitting the game. <note>This is only called clientside for the quitting Player.</note> </description> </structure></structure>⤶ ⤶ <example>⤶ <description>This is a basic template with the purpose of including all arguments / table variables to make it easily known which values can be accessed.</description>⤶ <code>⤶ gameevent.Listen( "host_quit" )⤶ hook.Add( "host_quit", "host_quit_example", function() ⤶ ⤶ // Called when the client is quitting the game.⤶ ⤶ end )⤶ </code>⤶ </example>