I understand that removing DarkRP Hud removes this feature but is there a way to add it to a new hud? I have tried adding this code and it doesn't seem to work.
[CODE]
local AdminTell = function() end
usermessage.Hook("AdminTell", function(msg)
timer.Remove("DarkRP_AdminTell")
local Message = msg:ReadString()
AdminTell = function()
draw.RoundedBox(4, 10, 10, Scrw - 20, 110, colors.darkblack)
draw.DrawNonParsedText(DarkRP.getPhrase("listen_up"), "GModToolName", Scrw / 2 + 10, 10, colors.white, 1)
draw.DrawNonParsedText(Message, "ChatFont", Scrw / 2 + 10, 90, colors.brightred, 1)
end
timer.Create("DarkRP_AdminTell", 10, 1, function()
AdminTell = function() end
end)
end)
[/CODE]
If you are also wondering which modules i have disabled here is that code as well.
[CODE]
local HideElements = {
--"DarkRP_HUD",
"DarkRP_LocalPlayerHUD",
"DarkRP_EntityDisplay",
"DarkRP_Agenda",
"DarkRP_Hungermod",
"CHudHealth",
"CHudBattery",
"CTargetID"
}
local function HUDShouldDraw( Element )
if table.HasValue( HideElements, Element ) then return false end
end
hook.Add( "HUDShouldDraw", "HUDShouldDraw", HUDShouldDraw )
[/CODE]
Sorry, you need to Log In to post a reply to this thread.