Two GMOD servers
Hello, I come here you today because I have a question: How to synchronise two servers and when a player buy a VIP on server n°1 he also has it on server n°2. Similar for vehicles and for money in the bank and the pocket. Sorry for any misspelling. Kind regards
The two server are on the same machine ?
Best way is to use a SQL DB
Lazy way is to store VIPs in /data and just have one folder for the two servers just use one .bat/.sh file per server
use the same mysql database for whatever addon it is, idk if it works for ulx though
What donation system are you using? Becuase with Prometheus, just give the servers the same ServerID
ByOwain Owjoat 17th of January 2018 16:51:34
What donation system are you using? Becuase with Prometheus, just give the servers the same ServerID
Yes but i know and for Vehicles, money....
I think I might have miss understood. I thought you were asking how you would share the VIP package.
If you're on about cars and money ect, then you'd need an external database that you have both servers share. All DarkRP gamemode data is savable through sql in the darkrpmodification settings. But for standalone addons like car dealers, you'll need to check with the car dealer you're using as only some will support it. Same with your inv system. I know that ItemStore has a MySQL option. It's a very much so addon-to-addon thing.
ByOwain Owjoat 17th of January 2018 18:05:40
I think I might have miss understood. I thought you were asking how you would share the VIP package.If you're on about cars and money ect, then you'd need an external database that you have both servers share. All DarkRP gamemode data is savable through sql in the darkrpmodification settings. But for standalone addons like car dealers, you'll need to check with the car dealer you're using as only some will support it. Same with your inv system. I know that ItemStore has a MySQL option. It's a very much so addon-to-addon thing.
But if I put database on darkrpmodifcation, it will reset all on my server because my server is open ^^
ByOwain Owjoat 17th of January 2018 22:07:50
Then you'd need to port your data from your current localsv.dbinto the new external sql one. It's pretty simple once you've done some basic research.Ok thank you very much ! I will try asap. Because I don't want my players to buy 2 times a VIP or vehicles... Appreciate your help :)
ByOwain Owjoat 18th of January 2018 09:48:03
No worries! You're welcome to add me on steam if you need any help.
I already have you in my friend list But thanks alot