View Single Post
04-14-18, 05:52 PM   #1
GreyFox777
A Cliff Giant
Join Date: Jan 2017
Posts: 75
IsInGroup not working

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.
  Reply With Quote