I havent dealt much with lua before, so Im trying to learn a bit of it by picking apart the code from the given files. There is no HUD or anything that comes with the example fpsweapon.lua so I decided I wanted to try and make one.
Ive added the following function to fpsweapon.lua, but it doesn't seem to work at all.
function Script:Loop()
self.context:SetBlendMode(Blend.Alpha)
self.context:SetColor(1,1,1,1)
self.context:DrawText("Ammo ",92,92)
return true
end