HUD Image purple and black squares

Well, my image in my HUD isn’t working. It’s only purple and black squares. Here are my codes:

cl_init
[lua]local dollarsign = Material( “HUD/DollarSign” )
function GM:HUDPaint()

surface.SetMaterial( dollarsign )
surface.SetDrawColor( Color( 255, 255, 255, 255 ) )
surface.DrawTexturedRect( ScrW() * 0.02, ScrH() * 0.80, 128, 128 )

end[/lua]

VMT:


"LightmappedGeneric"
{
	"$basetexture" "HUD/DollarSign"
	"$translucent" 1
}

And I also have this in init.lua:
[lua]resource.AddFile( “materials/HUD/DollarSign.vmt” )[/lua]

Can anyone help me fix this?

Thanks,
wake

I think the issue is your VMT.


"UnlitGeneric"
{
	"$basetexture"		"your/texture/path"
	"$ignorez"		1
	"$vertexcolor" 		1
	"$vertexalpha" 		1
	"$nolod" 		1
}

That’s a basic VMT used for most similar materials. This one came from the silkicon set.

That didn’t fix it. I’m going to try something.

EDIT:

I fixed it.

[editline]11:47AM[/editline]

Also, what is the best vtf format? I use DXT1, but it is really pixelated in-game.