TOOL.RenderToolScreen

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameRenderToolScreen
SyntaxTOOL:RenderToolScreen( )
DescriptionDraws the screen you see on the Toolgun.
ReturnsNil
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=TOOL.RenderToolScreen]TOOL.RenderToolScreen [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionCreate a plain background on the Toolgun screen.
Used onNewerClient.png
Code
 
function TOOL:RenderToolScreen()
	cam.Start2D()
		surface.SetDrawColor(25, 25, 25, 255)
		surface.DrawRect(0, 0, 256, 256)
	cam.End2D()
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox