kasuganosoras / esx_realparking

🅿️ A real car parking script for FiveM
GNU General Public License v3.0
51 stars 31 forks source link

Tunning dont save on impound #23

Closed ismaelviac closed 4 years ago

ismaelviac commented 4 years ago

If i modify a car and store it andget inpund any modifications done lost

kasuganosoras commented 4 years ago

Because it not save the vehicle data when you parking, it only change the status in database.

ismaelviac commented 4 years ago

ok i fix it thanks i added this code MySQL.Async.execute('UPDATE owned_vehicles SET vehicle = @vehicle WHERE owner = @owner AND plate = @plate', { ['@owner'] = xPlayer.identifier, ['@vehicle'] = json.encode(vehicleData.props), ['@plate'] = plate })