Hello! Hopefully I'm posting this in the right place. I'm fairly new to creating HUDs with LUA. I was wondering, how would I go about making a simple HUD that appears at the top left of the players screen. The HUD would just contain some text telling the player where they need to go. Every 180 seconds or so the HUD would change, telling the player what new place to go to. Any help is appreciated.
EX:
-----------------------------------------------------------------
| GRADE 9/10: SCIENCE |
| GRADE 11/12: SOCIAL STUDIES |
-----------------------------------------------------------------
180 SECONDS LATER
-----------------------------------------------------------------
| GRADE 9/10: SOCIAL STUDIES |
| GRADE 11/12: LANGUAGE ARTS |
-----------------------------------------------------------------
It's called research, try use it some times before you ask to be spoon fed.
[url]https://www.youtube.com/watch?v=UK-9ZRpBkLs[/url]
Oh and just look up HUDPaint on Gmod Wiki and figure it out your self?
Good luck.
[QUOTE=JacobsReturn;52550054]It's called research, try use it some times before you ask to be spoon fed.
[url]https://www.youtube.com/watch?v=UK-9ZRpBkLs[/url]
Oh and just look up HUDPaint on Gmod Wiki and figure it out your self?
Good luck.[/QUOTE]
Thanks for the reply. I'm also trying to figure out how to make an RNG to go along with the HUD. I've done some research but couldn't find anything.
[QUOTE=JacobsReturn;52550054]It's called research, try use it some times before you ask to be spoon fed.
[url]https://www.youtube.com/watch?v=UK-9ZRpBkLs[/url]
Oh and just look up HUDPaint on Gmod Wiki and figure it out your self?
Good luck.[/QUOTE]
Hey fucking asshole, no one likes you and your gonna die alone. If someone asks a questions don't go out of your way to be a pompous cunt. The fact that you think playing video games and making a shitty video game server requires knowledge proves how sad your life really is. The only thing getting spoon fed is you and your parents still making meals for you when you're 25 and still live in there basement. Get a life you fucking moron and stop going out of your way to make yourself feel less pathetic than you really are.
[highlight](User was banned for this post ("Rude" - Kiwi))[/highlight]
[QUOTE=SQUANCHY;52550121]Hey fucking asshole, no one likes you and your gonna die alone. If someone asks a questions don't go out of your way to be a pompous cunt. The fact that you think playing video games and making a shitty video game server requires knowledge proves how sad your life really is. The only thing getting spoon fed is you and your parents still making meals for you when you're 25 and still live in there basement. Get a life you fucking moron and stop going out of your way to make yourself feel less pathetic than you really are.[/QUOTE]
Chill.
[QUOTE=Cameron_Art;52550104]Thanks for the reply. I'm also trying to figure out how to make an RNG to go along with the HUD. I've done some research but couldn't find anything.[/QUOTE]
Just because you didn't find "how to create a HUD like this" doesn't mean that you have to ask how to create that HUD
Learn Lua, learn how hud works, dont waste our time, we won't code nothing for you
[QUOTE=gonzalolog;52551034]Just because you didn't find "how to create a HUD like this" doesn't mean that you have to ask how to create that HUD
Learn Lua, learn how hud works, dont waste our time, we won't code nothing for you[/QUOTE]
Thanks for the reply. I understand that. I'm not asking anyone to code anything for me. I'm just asking if someone could point me in the right direction.
[URL]https://wiki.garrysmod.com/page/GM/HUDPaint[/URL]
That link basically explains everything in a nutshell. Use 2D paint functions in that hook, either surface or draw, it really doesn't matter with what you're trying to do.
Check out [URL="https://wiki.garrysmod.com/page/draw/SimpleText"]draw.SimpleText[/URL] and the [URL="https://wiki.garrysmod.com/page/surface/DrawText"]surface.DrawText example[/URL]. You can also create fonts with [URL="https://wiki.garrysmod.com/page/surface/CreateFont"]surface.CreateFont[/URL].
[QUOTE=pqbrown;52551704][URL]https://wiki.garrysmod.com/page/GM/HUDPaint[/URL]
That link basically explains everything in a nutshell. Use 2D paint functions in that hook, either surface or draw, it really doesn't matter with what you're trying to do.
Check out [URL="https://wiki.garrysmod.com/page/draw/SimpleText"]draw.SimpleText[/URL] and the [URL="https://wiki.garrysmod.com/page/surface/DrawText"]surface.DrawText example[/URL]. You can also create fonts with [URL="https://wiki.garrysmod.com/page/surface/CreateFont"]surface.CreateFont[/URL].[/QUOTE]
Ok! Thank you for your help! I appreciate it!
Sorry, you need to Log In to post a reply to this thread.