Update sold vehicle in boss action by date

this will order sold vehicle by date in dec order so that an owner of vehicle easily get list of all vehicles that are recently sold
This commit is contained in:
Mr Capy
2022-04-06 15:06:14 +05:00
committed by GitHub
parent a3bccaa6d1
commit 7e35812ee0
+1 -1
View File
@@ -84,7 +84,7 @@ AddEventHandler('esx_vehicleshop:setVehicleOwnedPlayerId', function(playerId, ve
end)
ESX.RegisterServerCallback('esx_vehicleshop:getSoldVehicles', function(source, cb)
MySQL.query('SELECT client, model, plate, soldby, date FROM vehicle_sold', function(result)
MySQL.query('SELECT client, model, plate, soldby, date FROM vehicle_sold ORDER BY DATE DESC', function(result)
cb(result)
end)
end)