• Keeping var on server
    2 replies, posted
Hello again, i need to keep some lua vars on a gmod server even after a server restart, i don't think i can do this but if you know please tell me even if i need to make a database of some sort (which i have no idea how to do so please be descriptive) Thank you in advance.
You can use the [url=http://wiki.garrysmod.com/page/Category:file]file library[/url] to save your vars when they change and read them when the server reboots.
[post=50008733]Yes.[/post] [quote][url]http://wiki.garrysmod.com/page/Category:cookie[/url] [url]http://wiki.garrysmod.com/page/Category:file[/url] [url]http://wiki.garrysmod.com/page/Category:sql[/url] Use sql to make database. Cookie also uses sql, it just simplified. To store table with file lib use JSON or convert it to keyvalues. Just look around the wiki. Edit: did you remove your second question or i just missed a thread?[/quote]
Sorry, you need to Log In to post a reply to this thread.