Really fix vehicle spawn in each other

This commit is contained in:
Jérémie N'gadi
2017-08-12 14:12:29 +02:00
parent 23a20fd8d5
commit f2c068f981
2 changed files with 84 additions and 68 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ function RemoveOwnedVehicle(plate)
end
AddEventHandler('onMySQLReady', function()
-- AddEventHandler('onMySQLReady', function()
Categories = MySQL.Sync.fetchAll('SELECT * FROM vehicle_categories')
local vehicles = MySQL.Sync.fetchAll('SELECT * FROM vehicles')
@@ -52,7 +52,7 @@ AddEventHandler('onMySQLReady', function()
end
end)
-- end)
RegisterServerEvent('esx_vehicleshop:setVehicleOwned')
AddEventHandler('esx_vehicleshop:setVehicleOwned', function(vehicleProps)