Hello, im creating a custom hud.
But how i remove the default darkrp hud?
Iknow i can go into disabled_defaults and do hud ) true, but that makes the messages that pops up when u change team not appear, so anyone know to either make a custom message that pops up Or make the default darkrp hud removed without removing the popup messages and other needed darkrp stuff..?
I would like a custom popup message for my hud if possible. but both is good.
put this in your hud
[CODE]
local hideHUDElements = {
["DarkRP_HUD"] = true,
["DarkRP_EntityDisplay"] = false,
["DarkRP_ZombieInfo"] = false,
["DarkRP_LocalPlayerHUD"] = true,
["DarkRP_Agenda"] = false,
["DarkRP_Hungermod"] = true,
}
hook.Add("HUDShouldDraw", "HideDefaultDarkRPHud", function(name)
if hideHUDElements[name] or name == "CHudHealth" or name == "CHudBattery" or name == "CHudSuitPower" then return false end
end)
[/CODE]
well, some of the elements are up to you, but you are going to want DarkRP_HUD and LocalPlayerHUD to be set to true obviously
Sorry, you need to Log In to post a reply to this thread.