Gamemode.Saved

From GMod Wiki

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