ENT.OnRestore
From GMod Wiki
| Event Hook | |
| Hook Name | OnRestore | 
| Syntax | ENT:OnRestore( ) | 
| Description | Called when a save-game is loaded. | 
| Returns | Nil | 
| Lua State |   | 
| BBCode | [b][url=wiki.garrysmod.com/?title=ENT.OnRestore]ENT.OnRestore [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
Examples
| Description | Removes the entity if it is loaded in a save game | 
|---|---|
| Used on |  | 
| Code | function GM:OnRestore() self:Remove() end | 
| Output | Nothing, the entity is removed. | 
 
			
			