I'm at work right now so I can't really code anything and test it. However, a quick Google search and I came across this
https://us.battle.net/forums/en/wow/...5206360#post-2.
You could try changing this
Code:
bar:SetStatusBarTexture(0.75,0.75,0.75)
to
Code:
bar:SetStatusBarTexture("path//to//your//statusbartexture")
ie:
Code:
bar:SetStatusBarTexture("Interface//AddOns//MyAddOn//media//statusbartexture")