I found something like this, is that what i need?
Lua Code:
hooksecurefunc(getmetatable(PlayerFrameHealthBar).__index, "Show", function(bar, ...)
if bar:GetParent().healthbar then
if bar.styled == nil then
bar:SetStatusBarTexture("Interface\\AddOns\\EVUI\\FrameBackground")
bar:GetStatusBarTexture():SetHorizTile(true)
bar.styled = true
end
end
end)