Garry's Mod Wiki




Called whenever the HUD should be drawn. Called right before GM:HUDDrawScoreBoard and after GM:HUDPaintBackground.

Not called when the Camera SWEP is equipped. See also GM:DrawOverlay.

Gets called only when r_drawvgui and CHudGMod are enabled and the game is not paused
This is a rendering hook which provides a 2d rendering context.


Draws a transparent black box in the top left corner of the screen.

hook.Add( "HUDPaint", "HUDPaint_DrawABox", function() surface.SetDrawColor( 0, 0, 0, 128 ) surface.DrawRect( 50, 50, 128, 128 ) end )

Page Links

Special Pages



Render Time: 78ms

DB GetPage 53
Generate Html 2
SaveChanges (1) 9
Render Body 0
Render Sidebar 12