mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
Update main.lua
This commit is contained in:
+3
-6
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user