local hideparty = CreateFrame"Frame" hideparty:SetScript("OnEvent", function() if not InCombatLockdown() then if UnitInRaid"player" then party:Hide() else party:Show() end end end) hideparty:RegisterEvent"RAID_ROSTER_UPDATE" hideparty:RegisterEvent"PLAYER_LOGIN"