Basically I am making a HUD via darkrpmodifications/lua/darkrp_modules/ and I need to draw an icon onto it, I have been using a png file like so:
local ico1 = Material( "wcserverscustom/hud/health-icon.png", "smooth mips" )
Then later on, in the drawhud hook
surface.SetDrawColor(Color(255,255,255)) surface.SetMaterial( ico1 ) surface.DrawTexturedRect(ScrW() - 40, ScrH() - 240, 32, 32)
How would I alter it to use a vtf file instead, I tried changing png to vtf and it just made it pink even though it downloaded via fastdl.