--[[ ░▒▓████████▓▒░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░░▒▓███████▓▒░ This File Leaked By TC HUB Team, Join Our Server For More DISCORD: - https://discord.gg/k3S8RjkPWc - https://t.me/+RgDxwPX3L7w2ODBk - https://tchub.shop/ --]] Components.Transfer = {} function Components.Transfer.Init() Components.Camera.TransferCam() end function Components.Transfer.SwitchCoords(garageData) if not garageData then return false end local spotCoords = vector3( garageData.spots[1].coords.x, garageData.spots[1].coords.y, garageData.spots[1].coords.z ) local spotHeading = garageData.spots[1].coords.w debugPrint("[^2TRANSFER^7] Preloading map [/]") NewLoadSceneStart(spotCoords.x, spotCoords.y, spotCoords.z, 0.0, 0.0, 0.0, 50.0, 0) local startTime = GetGameTimer() while IsNetworkLoadingScene() do if GetGameTimer() - startTime > 5000 then break end Wait(0) end NewLoadSceneStop() SetPedCoordsKeepVehicle(PlayerPedId(), spotCoords) startTime = GetGameTimer() while not HasCollisionLoadedAroundEntity(PlayerPedId()) do RequestCollisionAtCoord(spotCoords) if GetGameTimer() - startTime > 5000 then break end Wait(0) end SetPedCoordsKeepVehicle(PlayerPedId(), spotCoords) SetEntityHeading(GetVehiclePedIsIn(PlayerPedId()), spotHeading) FreezeEntityPosition(PlayerPedId(), true) debugPrint("[^2TRANSFER^7] Map loaded") return true end function Components.Transfer.Handle(garageName) local garageData = Components.DevTools.Data.garages[garageName] if not garageData then return false end Components.Transfer.SwitchCoords(garageData) Components.Camera.TransferCam_Idle() Components.Transfer.Effects() end function Components.Transfer.Effects() Citizen.CreateThread(function() local ped = PlayerPedId() local startTime = GetGameTimer() local duration = 1200 local endTime = startTime + duration local currentTime = startTime local progress = 0.0 while endTime > currentTime do local pedCoords = GetEntityCoords(ped) progress = (endTime - currentTime) / duration DrawGlowSphere( pedCoords.x, pedCoords.y, pedCoords.z, 1000.0 * (1.0 - progress), 255, 255, 255, 0.4 * progress, false, false ) currentTime = GetGameTimer() Wait(0) end end) end