saverestore.ReadVar
From GMod Wiki
| Function | |
| Syntax |
saverestore.ReadVar( Table restore ) Where is this used? |
| Description: | |
| Reads a single variable of any type. | |
| Returns: | Var |
| Part of Library: | saverestore |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Saverestore.ReadVar]Saverestore.ReadVar [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- restore - Table representing internal restore functions. You should use the restore table that is passed by the engine to your hooked restore function.
- This function will read and subsequently return a variable of any type (including tables and vectors). If you're unsure of what the return type is, you can use the type function to discover it (see the second example)