--[[ ░▒▓████████▓▒░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░ ░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░░▒▓██████▓▒░░▒▓███████▓▒░ 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.Mark = {} Components.Mark.TXD = CreateRuntimeTxd("zsx_garages_marks") Components.Mark.Data = { Amount = 0, Spots = {}, } function Components.Mark.Create(icon, coords) local spotId = "mark_" .. _Lib.GenerateRandomString(10) local width = math.floor(2560.0) local height = math.floor(1440.0) local resourceName = GetCurrentResourceName() local duiUrl = "https://cfx-nui-" .. resourceName .. "/sprites/mark.html" local duiObj = CreateDui(duiUrl, width, height) local duiHandle = GetDuiHandle(duiObj) while not IsDuiAvailable(duiObj) do Wait(100) end local texture = CreateRuntimeTextureFromDuiHandle(Components.Mark.TXD, spotId, duiHandle) Components.Mark.Data.Spots[spotId] = { id = spotId, icon = icon, coords = coords, duiObj = duiObj, duiHandle = duiHandle, isInitialized = false, isClose = false, txn = texture, } Components.Mark.Data.Amount = Components.Mark.Data.Amount + 1 end function Components.Mark.RemoveAll() Components.Mark.Data.Spots = {} Components.Mark.Data.Amount = 0 end