esx_lscustom fix

This commit is contained in:
GLN
2022-11-25 00:01:12 +01:00
committed by GitHub
parent c84bd352c1
commit 28f5a377d1
+1 -1
View File
@@ -79,7 +79,7 @@ AddEventHandler('esx_lscustom:refreshOwnedVehicle', function(vehicleProps)
local vehicle = json.decode(result.vehicle)
if vehicleProps.model == vehicle.model then
MySQL.update('UPDATE owned_vehicles SET vehicle = ? WHERE plate = ?', {json.encode(vehicleProps), vehicleProps.plate})
Customs[tostring(source)][tostring(vehicleProps.plate)].props = props
Customs[tostring(source)][tostring(vehicleProps.plate)].props = vehicleProps
else
print(('[^3WARNING^7] Player ^5%s^7 Attempted To upgrade with mismatching vehicle model'):format(xPlayer.source))
end