Hi.
I just want to draw a box at a place on the players screen. How do I do this?
Thanks.
draw.RoundedBox( cornerValue, X, Y, Width, Height, Colour )
If you want a box without rounded corners you can just set the corner value to 0.
There is more information about how to do this on the wiki.
Link: [url]http://wiki.garrysmod.com/?title=Gamemode.HUDPaint[/url]
Here is some information about the draw.RoundedBox() function.
Link: [url]http://wiki.garrysmod.com/?title=Draw.RoundedBox[/url]
You're also able to do "surface.DrawRect()".
For future reference check out this link.
[url]http://wiki.garrysmod.com/?title=Surface[/url]
Thanks. How do I do what happens on click the box?
You would want to use a DButton.
[url]http://wiki.garrysmod.com/?title=DButton[/url]
I just want a box on a specific place on the screen, and when you press the box with your mouse, the box is still there, but for example, your health goes to 100.
You would create a new Panel object.
[url]http://wiki.garrysmod.com/?title=Custom_VGUI[/url]
Sorry, you need to Log In to post a reply to this thread.