ah i was making it harder than needed, didnt realise BAG_OPEN was deprecated, all i needed was
Code:
local function hideBG()
ContainerFrame1MoneyFrame:Hide()
for i = 1, NUM_CONTAINER_FRAMES do
_G["ContainerFrame"..i.."CloseButton"]:Hide()
_G["ContainerFrame"..i.."BackgroundTop"]:Hide()
_G["ContainerFrame"..i.."BackgroundBottom"]:Hide()
_G["ContainerFrame"..i.."BackgroundMiddle1"]:Hide()
end
end
hooksecurefunc("ContainerFrame_OnShow", function() hideBG() end)