Gamemode.Saved

From GMod Wiki

Revision as of 23:07, 22 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameSaved
SyntaxGM:Saved( )
DescriptionAutomatically called when the game is saved (through the Save Game interface in Single Player)
ReturnsNil
Lua StateNewerShared.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.Saved]Gamemode.Saved [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints "the game has been saved" to the console when the game is saved
Used onNewerShared.png
Code
function GM:Saved()
   print("The game has been saved!")
end
OutputThe game has been saved!
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox