Merge pull request #198 from mr-capy/patch-1

feat(esx_vehicleshop/server/main.lua): Arrange Vehicle order by date in boss action
This commit is contained in:
Benzo
2022-04-28 17:24:46 +02:00
committed by GitHub
+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)