Drawing my custom texture...

[lua] draw.TexturedQuad
{
texture = self.texture,
x = 0,
y = 0,
w = 1024,
h = 1024
}[/lua]

[lua]self.texture = surface.GetTextureID(“noshit.vtf”)[/lua]

My texture file is in garry’s mod beta/garrysmod/gamemodes/MAGAMEMODE/content/materials/.

And it says — Missing Vgui material noshit.vtf

What is the problem here?

Post the VMT. Also remove the .vtf from the path.

Oh sh–. VMT…
OK, that silly program didn’t make me a VMT file…
What should I put in it?

Edit: :v:

[lua]“UnlitGeneric”
{
“$basetexture” “noshit”
“$ignorez” 1
“$vertexcolor” 1
“$vertexalpha” 1
“$nolod” 1
}[/lua]

That should work. Let me know if there are any other issues.

How do I use a PNG instead?

I saw the silk icons in GMod 13.
They are just PNG files (no VMTs), and they work.

The first thing I tried with my texture is PNG. It has the same size (power of 2).