I have a function that gets the information of all the cars that has been bought for ingame money and it can spawn the cars when the resource is started but when a player disconnects and the vehicle data is changed when the player reconnects he is not able to see the changes to the car as I looked over other scripts they only using server side.
This is the only function that gets the vehicles data from the database but it only does when the resource starts
local query = mysql:query("SELECT * FROM vehicles")
local rows = mysql:fetch_assoc(query)
if rows then