Gamemode.Restored

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 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