Pure lua database supporting multiple clients based on json & luasocket
The code is based on prestonelam2003/CobaltEssentials
This is a BeamMP server plugin, and as such it runs inside a BeamMP server. Extract the contents of this folder into Resources/Server/CobaltDB. Players shouldn't join this server, so I recommend setting the MaxPlayers value to 0, and using a placeholder text for the AuthKey. Don't forget to change the server's port!
Put the client/RemoteDBconnector.lua file in CobaltEssentials/lua/.
in CobaltEssentialsLoader.lua change the line
CobaltDB = require("CobaltDBconnector")to
--CobaltDB = require("CobaltDBconnector")
CobaltDB = require("RemoteDBconnector")Run this server and your DB client once, this will generate dbConfig.json files inside both. Fill these out as you'd like, the default values should work.