Garry's Mod Wiki

Garry's Mod Wiki

  GM:PreDrawHUD()

Description

Called just after GM:PostDrawEffects. Drawing anything in it seems to work incorrectly.

Example

Allows you to draw something before any other HUD elements.

hook.Add( "PreDrawHUD", "PreDrawExample", function() cam.Start2D() -- If you don't call this the drawing will not work properly. surface.SetDrawColor( 20, 20, 20, 200 ) surface.DrawRect( 0, 0, ScrW(), ScrH() ) cam.End2D() end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...