I'm working on an addon for darkrp that lets people create parties on my server. What is the best way to save all the parties and members so that after server restarts it won't reset?
SQL
To be more specific, GMod comes with a version of SQLite you can use to read/write to an SQL database. The tutorial [URL="https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexb23a.html"]here[/URL] can get you started, especially if you are unfamiliar with SQL.
I prefer SQL myself, but if you don't want to learn it you could also do it the simple way with JSON.
Is the database local, like a file on your pc? Or does it have to be hosted?
Depends on how you set it up. Typically you want to keep a database on a web server, but if you're using Gmod SQL you don't have to worry too much since it's all done relative to the server.
If you decide to scrap doing SQL entirely and just use typical .txt files with JSON, then those are stored in the data folder of the server.
Sorry, you need to Log In to post a reply to this thread.