Garry's Mod

Garry's Mod

HUD Designer
 This topic has been pinned, so it's probably important
Exho  [developer] 8 Dec, 2014 @ 12:36pm
Getting your HUD in game
Exporting
While in the HUD Designer click on the Export button and choose where you want the code to export to. Console prints directly to console (~) and Text saves it to a text document in garrysmod/data/hud_designer. Thats where you can find your newly-exported Lua code

HUDPaint
http://wiki.garrysmod.com/page/GM/HUDPaint
All gamemodes will have a HUDPaint function and most of the time its under cl_hud.lua. The code in those functions is the same as the code this script exports, it works the same way. So you can find the gamemode in garrysmod/gamemodes and then once you find the HUD file you just have to put your code in there. Thats the simplist explanation of it. Or you could use a Hook instead of overriding default files

Use
At the moment, this addon doesn't support stuff like health bars because it will take a bit of effort for me to code into this (I am not a wizard), but you can figure that stuff out with easy math.

Remember, this doesn't magically create HUDs. It only creates the code used to make HUDs
< >
Showing 1-15 of 37 comments
MrHorizons 8 Dec, 2014 @ 1:03pm 
what file type do you recommend to have with the code?
MrHorizons 8 Dec, 2014 @ 1:03pm 
a
Exho  [developer] 8 Dec, 2014 @ 2:09pm 
.lua
MrHorizons 8 Dec, 2014 @ 2:26pm 
what about microsoft word?
Jade <3 8 Dec, 2014 @ 2:44pm 
I reccomend downloading notepad++ It is great for coding and can save as .lua
Exho  [developer] 8 Dec, 2014 @ 3:16pm 
You are kidding with Microsoft Word right? Get Notepad++ like he said ^
rcl 8 Dec, 2014 @ 3:28pm 
Microsoft word!? is this a joke! Use Microsoft Exel! Is awesome for lua and c++ coding! When i opened it i became a hacker and hacked your CLub Penguin account!
rcl 8 Dec, 2014 @ 3:28pm 
Thats why i got vac banned :C
Cyrus 9 Dec, 2014 @ 8:46am 
@nahuel ...
Portal 9 Dec, 2014 @ 2:09pm 
What is the HUD file for sandbox?
uncle piss 12 Dec, 2014 @ 9:01pm 
Should be cl_hud.lua, But I can't find it. Strange
uncle piss 12 Dec, 2014 @ 9:02pm 
the file is in the TTT thing though
Realest Res 14 Dec, 2014 @ 8:21am 
Guys if you're wondering what the sandbox gui is, just follow this directory:
C:\Program Files (x86)\Steam\SteamApps\common\GarrysMod\garrysmod\gamemodes\sandbox\gamemode\cl_init
or :
C:\ProgramFiles\Steam\SteamApps\common\GarrysMod\garrysmod\gamemodes\sandbox\gamemode\cl_init
Last edited by Realest Res; 15 Dec, 2014 @ 12:39pm
Exho  [developer] 3 Jan, 2015 @ 8:45am 
Oh man, its still funny
< >
Showing 1-15 of 37 comments
Per page: 1530 50