Discord
Steam
/
Garry's Mod
/
Developers
/
Overlay on a s..
Login/Join
Event Log
Overlay on a scoped weapon?
3 replies, posted
Search
In This Thread
I'm making a pair of binoculars, and I have no idea how to draw a material I have sitting here as an overlay. Halp!
[lua]local Texture = surface.GetTextureID( "path/to/material" ) local function PaintOverlay() surface.SetDrawColor( 255, 255, 255, 255 ) surface.SetTexture( Texture ) surface.DrawTexturedRect( 0, 0, ScrW(), ScrH() ) end hook.Add( "HUDPaint", "PaintMyOverlay", PaintOverlay ) [/lua]
[lua]function SWEP:DrawHUD( ) --blackops draw code end [/lua]
Thanks guys, but I got it figured out after about an hour of trying everything.
Sorry, you need to
Log In
to post a reply to this thread.