I’ve been trying to make a helmet overlay with hud, as my first proper LUA code, but I’ve already hit problems:
[lua]local iScreenWidth = surface.ScreenWidth()
local iScreenHeight = surface.ScreenHeight()
local HelmetTex = surface.GetTextureID(“Helmet/Helmet”)
local function drawHelmetTexture()
concommand.Add( “HelmetOn”, drawHelmetTexture )
There are no actual errors in the script according to the game, and the ConCommand shows up, but when I use it, nothing happens.
Also, how would I go about adding my matirial to the matirial tool.