1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

Default HUD

Discussion in 'DarkRP Modding Questions & Help' started by MysticalPlug, Apr 2, 2019.

Tags:
  1. MysticalPlug

    MysticalPlug New Member

    when playing on my server I have a custom HUD but the default HUD won't go away I have done everything that I have seen and none of it worked
     
  2. Claims

    Claims New Member

    Code (Text):
    /*--  Hide Default HUD --*/
    local hideHUDElements = {
        ["DarkRP_HUD"] = true,    
        ["DarkRP_PlayerInfo"] = true,
        ["DarkRP_EntityDisplay"] = true,
        ["DarkRP_Hungermod"] = false, // Only set to true if hungermod are active
    }
    /*-- Hide HUD Elements --*/
    local function hideElements(name)
        for k, v in pairs({"CHudHealth", "CHudBattery", "CHudSuitPower", "CHudDeathNotice", "CHudAmmo"}) do
            if name == v then return false end
        end
        if hideHUDElements[name] then
            return false
        end
    end
    hook.Add("HUDShouldDraw", "hideElements", hideElements)
    Should do it.
     
  3. MysticalPlug

    MysticalPlug New Member

    do I put this in the hudreplacement.lua
     

Share This Page