Garry's Mod Wiki

GM:PostDrawHUD

GM:PostDrawHUD()

Description

Called after GM:PreDrawHUD, GM:HUDPaintBackground and GM:HUDPaint but before GM:DrawOverlay.

This is a rendering hook which provides a 2d rendering context.

Example

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

hook.Add("PostDrawHUD", "PostDrawHUD_DrawABox", function() surface.SetDrawColor( 0, 0, 0, 128 ) surface.DrawRect( 50, 50, 128, 128 ) end )

Page Links


Special Pages


Wikis

?

Render Time: 28ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 10
Render Body 0
Render Sidebar 9