local frame = CreateFrame("Frame")

-- Function to hide the quest tracker
local function HideQuestTracker()
    if IsInInstance() then
        ObjectiveTrackerFrame:Hide()
    else
        ObjectiveTrackerFrame:Show()
    end
end

-- Event handler
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame:SetScript("OnEvent", HideQuestTracker)
