Was trying to make some simple code to just always hide the player and target frame but it seemed to not work as I transition between areas in the open world. Here is what I had so far, any help is appreciated.
-- Function to hide the player and target frames
local function HideFrames()
if PlayerFrame then
PlayerFrame:Hide() -- Hide the PlayerFrame
end
if TargetFrame then
TargetFrame:Hide() -- Hide the TargetFrame
end
end
-- Event handler function
local function OnEvent(self, event, ...)
if event == "ZONE_CHANGED_NEW_AREA" or event == "PLAYER_ENTERING_WORLD" then
HideFrames()
end
end
-- Create a frame to hand
