Gamemode.Restored

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameRestored
SyntaxGM:Restored( )
DescriptionAutomatically called when the game is loaded from a saved game.
ReturnsNil
Lua StateNewerShared.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.Restored]Gamemode.Restored [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

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