• Drawing PNG's
    2 replies, posted
What am I doing wrong that causes this code not to work? [LUA]local mat = Material("mytextures/test.png") function drawpng() surface.SetMaterial(mat) surface.DrawTexturedRect(100,100, 100, 100) end hook.Add("HUDPaint", "drawpng", drawpng);[/LUA]
surface.SetDrawColor(255,255,255,255)
That did it, cheers!
Sorry, you need to Log In to post a reply to this thread.