Posts: 7
Threads: 4
Joined: Oct 2017
Reputation:
0
Simple question, I've converted my script to use a database for player + vehicle data instead of INI files. Should the database be written to every-time a player disconnects?
Thanks in advance.
Posts: 1,752
Threads: 338
Joined: Jul 2012
Reputation:
0
Yes. cause you need to keep up with player data at all times of loses!
Posts: 7
Threads: 4
Joined: Oct 2017
Reputation:
0
Great thank you! I thought that but just needed verification.
How often would you recommend saving the vehicle data (Location, Mods etc)? Each time OnPlayerExitVehicle is called?
Posts: 944
Threads: 128
Joined: Sep 2014
Reputation:
0
You should only save things that update frequently (such as online time, etc) when the player disconnects, but update instantly things that don't update too often such as admin level, vehicle ownership, etc.