GetNumRaidMembers has been replaced with GetNumGroupMembers and IsInRaid.
Use the IsInRaid() boolean to make sure you are in a raid, and use GetNumGroupMembers to replace the functionality of GetNumRaidMembers.
Try:
Lua Code:
local raid = GetNumGroupMembers()
if IsInRaid() and raid >= 1 and raid <= 10 then
self:Show()
else
self:Hide()
end
Expand the concepts to where ever else you need.
Edit: I suppose you could remove the "raid" variable, and change the IF statement to:
Lua Code:
if IsInRaid() and GetNumGroupMembers() >=1 and <= 10 then