SWEP.HUDShouldDraw
From GMod Wiki
Revision as of 00:47, 24 October 2009 by Crazy Quebecer (Talk | contribs)
Event Hook | |
Hook Name | HUDShouldDraw |
Syntax | SWEP:HUDShouldDraw( String element ) |
Description | This hook determines which part of the hud to draw. |
Returns | Boolean |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.HUDShouldDraw]SWEP.HUDShouldDraw [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- This hook is called for each HUD element.
- Do not confuse this for a think function, this should strictly be used for drawing.
- Careful what you put here, it's run every frame, a lot of code may cause lag.
- This is only run when the swep is active, it will not run when the swep is holstered.