Hello,
I just recently got back into Garrys mod after taking a bit of a break from it, I returned to one of my favorite game modes, DarkRP. I realized after playing the new emergence of Dark RP content. It is quite impressive how far DarkRP lua scripts have came since I last played. One of the more popular mods I seen on servers have been the DarkRP permanent inventories. I am just curious about the general architectural design of them, from a server owner stand point. My friends and I were playing on a server not to long ago and where arguing on how exactly the inventories work. To my understanding a Owner would pay for a server, lets say from a provider such as NFO servers. All client side computers would connect to the provided server host to be able to play on servers. This would mean that player data would need to be stored on the server. Would this mean that owners have invested in using MySQL to run manage data between clients and servers? If servers don't use MySQL data bases, then does that mean they store inventory data on the local computers? then when they access there own personal inventory that data is called from a local directory on the computer? If a server owner does not want to use MySQL is there any other options?
Thanks for any responses!
I found the best way to do it without mySQL is to make your own database that is stored in the game directory's "data" folder. Goature made a decent video on how to do this. If you're decent in lua you should know how to manipulate it to your liking.
Depends on the script - Owners can opt in more than often to use their MySQL set-up or simply use SQLite that comes with garry's mod - look into your GarrysMod/GarrysMod folder, and there should be sv.db or/and cl.db.
Optionally, scripts can save data in JSON format in /data/ and then just parse the JSON back into Lua table-format.
Sorry, you need to Log In to post a reply to this thread.