• Hud not working.
    2 replies, posted
I'm trying to use this addon: [url]http://www.garrysmod.org/downloads/?a=view&id=50702[/url] In place of the default hud, but the default hud still shows up in-game over the top of the new hud even with that in my addons folder. Anyone know what's wronge? PIC: [img]http://i50.tinypic.com/s4040i.jpg[/img]
This is not replacing the HUD. Just making a new one on top. You need to hid the old one. Use this segment somewhere in the HUD code. [lua]function HideThings( name ) if (name == "CHudHealth" or name == "CHudBattery" or name == "CHudAmmo" or name == "CHudSecondaryAmmo") then return false end end hook.Add( "HUDShouldDraw", "HideThings", HideThings )[/lua] That hides the health, ammo, suit, and secondary ammo. Take out segments [or name == "HUD_ELEMENT_NAME"] if you dont want to hide them.
Sorry, you need to Log In to post a reply to this thread.