SWEP.DrawHUD

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameDrawHUD
SyntaxSWEP:DrawHUD( )
DescriptionThis hook is called every frame.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=SWEP.DrawHUD]SWEP.DrawHUD [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDraws "Hello client!" in red, at the center of the screen.
Used onNewerClient.png
Code
function SWEP:DrawHUD()
	draw.SimpleText("Hello client!","ScoreboardText",ScrW() / 2, ScrH() / 2,Color(255,0,0,255))
end
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox