vtf and vmt in hud


local tex = surface.GetTextureID("materials/snow1/snow") 
local function drawBrickTexture()Z
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",drawBrickTextu re)

sorry to ask but I want to add some snow effects to my server for Christmas and it doesnt seem to work any help and i would be very grateful :slight_smile:

Imgur

here were I placed the files.



local tex = surface.GetTextureID("snow1/snow") 
hook.Add( "HUDPaint", "DrawTheBricks", function()
    surface.SetTexture(tex)
    surface.SetDrawColor(255,255,255,255) 
    surface.DrawTexturedRect(ScrW()*0.5-32,ScrH()*0.5-32,64,64)
end )

i get purple and black check on my screen?

Then your path is incorrect.
Using .pngs is a way better solution nowadays, you don’t need to worry about lighting modes or anything.
Also note that you need to restart your gmod before the textures reload.

anyway i can turn it back into a png?