• How to disable the default HUD without disabling door groups
    5 replies, posted
Hey guys so I just am about finished up with a hud I have been making and I notice when I have the hud disabled in dark rp config it disables the orig hud but removes the door owners and I am assuming the agenda and stuff as well, so I was wondering how or what I needed to add to my code to remove the default hud automatically for anyone who installs it. I have tried adding this local hideHUDElements = {         ["DarkRP_HUD"] = true,         ["DarkRP_EntityDisplay"] = false,         ["DarkRP_ZombieInfo"] = false,         ["DarkRP_LocalPlayerHUD"] = true,         ["DarkRP_Agenda"] = false, ["DarkRP_Hungermod"] = true, } but it didnt seem to do anything at all.
No one replied to this which is a shame, but if anyone stumbles upon this looking for a answer in the future this is how I fixed it hook.Add( "HUDShouldDraw", "hide hud", function( name ) if ( name == "CHudHealth" or name == "CHudBattery" or name == "DarkRP_LocalPlayerHUD") then return false end I added "DarkRP_LocalPlayerHud" thats what disables the dark rp hud and "CHudHealth" is the yellow sand box looking hud that gets enabled when the DarkRp hud is disabled so you will probably need both. Hope this could help someone.
This isnt what hes talking about.... If you'd like to keep some of the original HUD features your going to have to copy & paste them from the old HUD into the new HUD or re-code the features yourself.
I got it working, is there a reply I cant see?
I'm guessing Default thought your second post was another user. Sometimes it can take a while before somebody answers your question as this is an international forum.
its not a problem haha
Sorry, you need to Log In to post a reply to this thread.