SWEP.DrawWeaponSelection

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameDrawWeaponSelection
SyntaxSWEP:DrawWeaponSelection( Integer x, Integer y, Integer width, Integer height, Integer alpha )
DescriptionThis functions draw the selection icon in the weapon selection menu
ReturnsTable
Lua StateNewerClient.png
BBCode[b][url=wiki.garrysmod.com/?title=SWEP.DrawWeaponSelection]SWEP.DrawWeaponSelection [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionDraws a simple weapon icon in the selection menu.
Used onNewerClient.png
Code
function SWEP:DrawWeaponSelection( x, y, wide, tall, alpha )
 
	draw.SimpleText( <IconLetter>, <FontName>, x + wide/2, y + tall*0.2, Color( 255, 210, 0, 255 ), TEXT_ALIGN_CENTER )
 
end
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox