I know this is probably in the wrong section (even though it is for a gamemode in gmod) but please help me anyway. I made a custom vtf (in materials/MelPy/melpy1.vtf) for a hud, and put this clientside function:
local tex = surface.GetTextureID(“MelPy/melpy1”)
function drawBrickTexture()
surface.SetTexture(tex)
surface.SetDrawColor(255,255,255,255)
surface.DrawTexturedRect(ScrW()*0.5-32,ScrH()*0.5-32,64,64)
end
hook.Add(“HUDPaint”,“DrawTheBricks”,drawBrickTexture)
I put this vmt in the same folder:
“UnlitGeneric”
{
“$basetexture” “Melpy\melpy1”
“$translucent” 1
“$vertexalpha” 1
“$vertexcolor” 1
}
But when I join my test server, all I get is the stupid checkerboard sneering at me. I’ve tried comparing my vmt to others, looking at other lua, and tried silkicons and killicons and DImages and still can’t get my image to show up. What am I doing wrong?