SWEP.HUDShouldDraw

From GMod Wiki

Revision as of 00:47, 24 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameHUDShouldDraw
SyntaxSWEP:HUDShouldDraw( String element )
DescriptionThis hook determines which part of the hud to draw.
ReturnsBoolean
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=SWEP.HUDShouldDraw]SWEP.HUDShouldDraw [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionDisables showing chat text.
Used onNewerClient.png
Code
function SWEP:HUDShouldDraw( element )
	//return false to hide an item
	if (element == "CHudChat") then
		return false
	else
		return true
	end
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox