diff --git a/client.lua b/client.lua index ce7f29f..39a7cce 100644 --- a/client.lua +++ b/client.lua @@ -785,7 +785,6 @@ local function Deleteveh(plate) -- Delete the vehicle if it is somewhere outside local vehicle = gameVehicles[i] if DoesEntityExist(vehicle) then if QBCore.Functions.GetPlate(vehicle) == plate then - TriggerServerEvent('MojiaGarages:server:removeOutsideVehicles', plate) QBCore.Functions.DeleteVehicle(vehicle) end end @@ -1232,7 +1231,6 @@ RegisterNetEvent('MojiaGarages:client:storeVehicle', function() -- Store Vehicle QBCore.Functions.DeleteVehicle(curVeh) end TriggerServerEvent('MojiaGarages:server:updateVehicleState', 1, plate, lastcurrentgarage) - TriggerServerEvent('MojiaGarages:server:removeOutsideVehicles', plate) if plate ~= nil then OutsideVehicles[plate] = nil end @@ -1258,7 +1256,6 @@ RegisterNetEvent('MojiaGarages:client:storeVehicle', function() -- Store Vehicle QBCore.Functions.DeleteVehicle(curVeh) end TriggerServerEvent('MojiaGarages:server:updateVehicleState', 1, plate, lastcurrentgarage) - TriggerServerEvent('MojiaGarages:server:removeOutsideVehicles', plate) if plate ~= nil then OutsideVehicles[plate] = nil end diff --git a/fxmanifest.lua b/fxmanifest.lua index c45c88f..fbbda2c 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -2,7 +2,7 @@ fx_version 'cerulean' game 'gta5' author 'Hoàng Đức' -version '1.0.1' +version '1.1.0' description 'MojiaGarages - Best advanced garages for QB-Core Framework' shared_scripts { diff --git a/server.lua b/server.lua index 4d656fb..58cccaa 100644 --- a/server.lua +++ b/server.lua @@ -254,7 +254,7 @@ CreateThread(function() -- Update houses end) -CreateThread(function() -- read all vehicles from the database on startup and do a cleanup check +CreateThread(function() -- Read all vehicles from the database on startup and do a cleanup check while true do if not vehiclesLoaded then vehiclesLoaded = true