saverestore.AddSaveHook
From GMod Wiki
Revision as of 14:58, 13 September 2009 by UnrealomegaBot (Talk | contribs)
| Function | |
| Syntax |
saverestore.AddSaveHook( String Name, Function func ) Where is this used? |
| Description: | |
| Adds a hook enabling a function to save something when the game is saved. | |
| Returns: | nil |
| Part of Library: | saverestore |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Saverestore.AddSaveHook]Saverestore.AddSaveHook [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 save table as a parameter (see example).