Can someone give me an advice how can i run this code only if player are in group?
local smallcircle5 = CreateFrame("Frame", "SmallCircleTopCenter", self)
smallcircle5:SetFrameLevel(self.Health:GetFrameLevel() + 5)
local smallcircle5texture = smallcircle5:CreateTexture(nil, "ARTWORK")
smallcircle5texture:SetTexture(m.textures.smallcircle)
smallcircle5texture:SetPoint('CENTER', self, 46, 35)
smallcircle5texture:SetSize(26,26)
smallcircle5texture:SetTexCoord(0, 1, 0, 1)
|
I tried like if IsInGroup('player') then
CODE
end
But it doesen't take a effect, until i reload my ui.