Update main.lua

This commit is contained in:
Mycroft
2021-04-05 23:00:09 +01:00
parent 33cafef736
commit ec343d99d0
+3 -6
View File
@@ -23,12 +23,9 @@ function RemoveOwnedVehicle(plate)
end
AddEventHandler('onResourceStart', function(resourceName)
Wait(420)
SQLVehiclesAndCategories()
end)
MySQL.ready(function()
SQLVehiclesAndCategories()
if resourceName == GetCurrentResourceName() then
MySQL.ready(function() SQLVehiclesAndCategories() end)
end
end)
function SQLVehiclesAndCategories()