Like this?
Code:
hooksecurefunc("PlayerFrame_UpdateStatus", function(self)
local statusTexture = PlayerFrame.PlayerFrameContent.PlayerFrameContentMain.StatusTexture;
if (IsResting()) then
statusTexture:Hide();
PlayerFrame_UpdatePlayerRestLoop(true);
end
end)
hooksecurefunc("PlayerFrame_UpdatePlayerRestLoop", function(state)
local playerRestLoop = PlayerFrame.PlayerFrameContent.PlayerFrameContentContextual.PlayerRestLoop;
if(state) then
playerRestLoop:Hide();
playerRestLoop.PlayerRestLoopAnim:Stop();
end
end)