saverestore.AddRestoreHook
From GMod Wiki
Function | |
Syntax |
saverestore.AddRestoreHook( String Name, Function func ) Where is this used? |
Description: | |
Adds a hook enabling a function to restore something when a save game is loaded. | |
Returns: | nil |
Part of Library: | saverestore |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Saverestore.AddRestoreHook]Saverestore.AddRestoreHook [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Name - Unique name identifying the hook.
- func - Restore function to call, this function must accept a restore table as a parameter (see example).