Dark RP Door titles not showing *Installed new hud*

Hey guys, recently I installed a new scoreboard and HUD. Now the door titles don’t show up and I believe the hitman text. I really have no idea why this is to be completely honest. Here is the code for both addons.

Scoreboard Code:


/*--------------------------------------------------*\
| You can only change things before the warning text |
\*--------------------------------------------------*/

local clbackground = Color(235,235,235,255) 	// Default color is 235,235,235,255
local topbackground = Color(38,38,38,255) 		// Default color is 63,67,78,255
local tagsbackground = Color(54,54,54,255) 		// Default color is 54,54,54,255
local rowcolor = Color(79,83,95,255)			// Default color is 79,83,95,255
local rowhovercolor = Color(255,255,255,0)		// Default color is 255,255,255,0
local colorrowteam = false						// Default false, if it is set to true the player row color will be changed based on the team color.
-- The logo size has to be 263x75
-- If logo is set to 0 then there will the blank space if you set a directory it will use that image as logo
-- When adding a directory do it like this Material("directory/filename.png or jpg")
local logo = 0			

/*-------*\
| Warning |
\*-------*/
local w,h = ScrW(),ScrH()
local y,y2 = 0,0

	-- 16:9
if w == 1280 and h == 720 then y = 75 end
if w == 1360 and h == 768 then y = 35 end
if w == 1366 and h == 768 then y = 35 end
if w == 1600 and h == 900 then y = 0 y2 = 80 end
if w == 1920 and h == 1080 then y = 0 y2 = 235 end
	-- 16:10
if w == 1680 and h == 1050 then y = 0 y2 = 120 end	
if w == 1600 and h == 1024 then y = 0 y2 = 80 end	
if w == 1440 and h == 900 then y = 0 y2 = 0 end	
if w == 1280 and h == 800 then y = 80 y2 = 0 end	
if w == 1280 and h == 768 then y = 80 y2 = 0 end		
	-- 4:3
if w == 1280 and h == 1024 then y = 80 y2 = 0 end	
if w == 1280 and h == 900 then y = 80 y2 = 0 end	
if w == 1152 and h == 864 then y = 140 y2 = 0 end	
--[[ Doesn't support the next resolutions
	1024x768
	800x600
	720x576
	640x480
]]
surface.CreateFont( "Info", {
 font = "Bebas",
 size = 19,
 weight = 500,
 antialias = true
})

surface.CreateFont( "Title", {
 font = "Bebas",
 size = 30,
 weight = 500,
 antialias = true
})

surface.CreateFont( "OtherInfo", {
 font = "Bebas",
 size = 24,
 weight = 500,
 antialias = true
})

surface.CreateFont( "NameRank", {
 font = "Bebas",
 size = 17,
 weight = 500,
 antialias = true
})

RunConsoleCommand("FAdmin_IsScoreboard", "0")

local function formatNumber(n)
	n = tonumber(n)
	if (!n) then
		return 0
	end
	if n >= 1e14 then return tostring(n) end
    n = tostring(n)
    sep = sep or ","
    local dp = string.find(n, "%.") or #n+1
	for i=dp-4, 1, -3 do
		n = n:sub(1, i) .. sep .. n:sub(i+1)
    end
    return n
end

function playercom(parent,x,y,text,image,color,name,command)
		
local userbtn = vgui.Create("DButton",parent)
	userbtn:SetPos(x,y)
	userbtn:SetSize(120,35)
	userbtn:SetTextColor(Color(255,255,255))
	userbtn:SetText(text)
	userbtn:SetImage(image)
	userbtn.Paint = function(self)
			draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),Color(51,51,51,255))
			surface.SetDrawColor(color)
			surface.DrawOutlinedRect(0,0,self:GetWide(),self:GetTall())
	end

	userbtn.DoClick = function()
		surface.PlaySound("buttons/button9.wav")
		chat.AddText(Color(255,60,60),"["..name.."]",Color(255,255,255)," was copied, just use CTRL+V to paste it.")
		SetClipboardText(command)
	end
	return userbtn
end

function command(parent,x,y,text,image,color,command,...)
		
local btn = vgui.Create("DButton",parent)
	btn:SetPos(x,y)
	btn:SetSize(120,35)
	btn:SetTextColor(Color(255,255,255))
	btn:SetText(text)
	btn:SetImage(image)
	btn.Paint = function(self)
			draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),Color(51,51,51,255))
			surface.SetDrawColor(color)
			surface.DrawOutlinedRect(0,0,self:GetWide(),self:GetTall())
	end
	
	local cmdArgs = {...}
	btn.DoClick = function()
		surface.PlaySound("buttons/button9.wav")
		RunConsoleCommand(command,unpack(cmdArgs))
	end
	return btn
end

function kick(parent,x,y,text,reason,image,color,command,ply)
			
	local cbtn = vgui.Create("DButton",parent)
		cbtn:SetSize(120,35)
		cbtn:SetPos(x,y)
		cbtn:SetTextColor(Color(255,255,255))
		cbtn:SetText(text)
		cbtn:SetImage(image)
		cbtn.Paint = function(self)
			draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),Color(51,51,51,255))
			surface.SetDrawColor(color)
			surface.DrawOutlinedRect(0,0,self:GetWide(),self:GetTall())
		end
		cbtn.DoClick = function()	
			surface.PlaySound("buttons/button9.wav")		
		local reportmsg = vgui.Create( "DFrame" )
			reportmsg:SetPos(ScrW() / 2 - 200, ScrH() / 2 - 120)
			reportmsg:SetSize(400,100)
			reportmsg:SetTitle("")
			reportmsg:SetVisible(true)
			reportmsg:SetDraggable(false)
			reportmsg:SetBackgroundBlur(true)
			reportmsg:ShowCloseButton(true)
			reportmsg:MakePopup()	
			
		local tellad = vgui.Create("DLabel",reportmsg)
			tellad:SetPos(reportmsg:GetWide()/2-100,22)
			tellad:SetText(reason)
			tellad:SizeToContents()		
		
		story = vgui.Create("DTextEntry",reportmsg)
			story:SetPos(10,42)
			story:SetTall(20)
			story:SetWide(reportmsg:GetWide()-20)
			story:RequestFocus()	

		local accept = vgui.Create("DButton",reportmsg)
			accept:SetPos(100,65)
			accept:SetSize(80,30)
			accept:SetImage('icon16/accept.png')	
			accept:SetText('Accept')
			accept.DoClick = function()
				if IsValid(reportmsg) then
					reportmsg:Close()
				end		
				AlertMessage = story:GetValue()	
				RunConsoleCommand("ulx",command,ply,AlertMessage)	
			end
		
		local cancel = vgui.Create("DButton",reportmsg)
			cancel:SetPos(230,65)
			cancel:SetSize(80,30)
			cancel:SetImage('icon16/cross.png')	
			cancel:SetText('Cancel')
			cancel.DoClick = function()
				if IsValid(reportmsg) then
					reportmsg:Close()
				end
			end
		end
	return btn
end

function ban(parent,x,y,text,reason,image,color,command,ply)
			
	local cbtn = vgui.Create("DButton",parent)
		cbtn:SetSize(120,35)
		cbtn:SetPos(x,y)
		cbtn:SetTextColor(Color(255,255,255))
		cbtn:SetText(text)
		cbtn:SetImage(image)
		cbtn.Paint = function(self)
			draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),Color(51,51,51,255))
			surface.SetDrawColor(color)
			surface.DrawOutlinedRect(0,0,self:GetWide(),self:GetTall())
		end
		cbtn.DoClick = function()	
			surface.PlaySound("buttons/button9.wav")		
			local menu = DermaMenu()
			local Title = vgui.Create("DLabel")
				Title:SetText("  Ban Time:
")
				Title:SetFont("UiBold")
				Title:SizeToContents()
				Title:SetTextColor(color_black)
					menu:AddPanel(Title)
					menu:AddOption("1 Hour", function() RunConsoleCommand("ulx",command,ply,60) end)
					menu:AddOption("5 Hour", function() RunConsoleCommand("ulx",command,ply,300) end)
					menu:AddOption("1 day", function() RunConsoleCommand("ulx",command,ply,1440) end)
					menu:AddOption("1 week", function() RunConsoleCommand("ulx",command,ply,10080) end)
					menu:AddOption("1 month", function() RunConsoleCommand("ulx",command,ply,40320) end)
					menu:AddOption("Permanently", function() RunConsoleCommand("ulx",command,ply,0) end)
				menu:Open()
		end
	return btn
end

function GM:ScoreboardShow()
gui.EnableScreenClicker(true)

	bg = vgui.Create("DFrame")
		bg:SetSize(800,700)
		bg:SetPos(ScrW()/2-400+y,ScrH()/2-350)
		bg:SetDraggable(false)
		bg:ShowCloseButton(false)
		bg:SetTitle("")
		bg.Paint = function(self)		
			draw.RoundedBox(8,0,0,self:GetWide(),self:GetTall(),Color(0,0,0,255))
			draw.RoundedBox(8,1,1,self:GetWide()-2,self:GetTall()-2,clbackground)
			draw.RoundedBox(0,0,0,self:GetWide(),75,topbackground)
			surface.SetDrawColor(61,61,61,255)
			surface.DrawLine(0,0,self:GetWide(),0)
			surface.SetFont("Title")
			draw.DrawText(GetHostName(),"Title",5,2.5,color_white,TEXT_ALIGN_LEFT)
			draw.DrawText("Time: "..os.date( "%I:%M:%S %p" ),"Info",5,35,color_white,TEXT_ALIGN_LEFT)
			draw.DrawText("Players: "..table.Count(player.GetAll()),"Info",5,55,color_white,TEXT_ALIGN_LEFT)
		end
		
	local plytext = vgui.Create("DPanel",bg)
		plytext:SetSize(bg:GetWide()-2,25)
		plytext:SetPos(1,75)
		plytext.Paint = function(self)
			draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),tagsbackground)
			surface.SetDrawColor(0,0,0,255)
			surface.DrawLine(0,0,self:GetWide(),0)
			surface.SetDrawColor(61,61,61,255)
			surface.DrawLine(0,1,self:GetWide(),1)
			draw.DrawText("Name","Info",5,2.5,color_white,TEXT_ALIGN_LEFT)
			draw.DrawText("Job","Info",self:GetWide()/2,2.5,color_white,TEXT_ALIGN_CENTER)
			draw.DrawText("Kills  /  Deaths","Info",self:GetWide()/1.2,2.5,color_white,TEXT_ALIGN_CENTER)
			draw.DrawText("Ping","Info",self:GetWide()/1.03,2.5,color_white,TEXT_ALIGN_RIGHT)
		end
		
		
	plist = vgui.Create("DScrollPanel",bg) 		
		plist:SetSize(bg:GetWide()-2,599)	
		plist:SetPos(1,100)
		plist:SetPadding(5)
		plist.Paint = function(self)
			draw.RoundedBoxEx(6,0,0,self:GetWide(),self:GetTall(),Color(0,0,0,0),false,false,true,true)
		end
		
local plys = player.GetAll()
table.sort(plys, function(a, b) return a:Team() > b:Team() end)	
	for k,v in pairs(plys) do
	
		local group = LocalPlayer():GetNWString("usergroup")
		local money = formatNumber(v:getDarkRPVar("money") or 0)
		local job = v:getDarkRPVar("job") or ""
		local energy = v:getDarkRPVar( "Energy" ) or 0
		
		local row = vgui.Create("DButton",plist)
			row:SetSize(plist:GetWide(),36)
			row:Dock(TOP)
			row:SetText("")
			row.Paint = function(self)
				if colorrowteam == true then
					draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),team.GetColor(v:Team()))
				else
					draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),rowcolor)
				end
				if v == LocalPlayer() then
					surface.SetDrawColor(255,255,255,math.Clamp(math.sin(RealTime()*4)*100,0,255))
					surface.DrawRect(0,0,self:GetWide(),self:GetTall())
				end				
				draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),rowhovercolor)	
				surface.SetDrawColor(0,0,0,255)
				surface.DrawLine(0,0,self:GetWide(),0)
				surface.SetDrawColor(61,61,61,255)
				surface.DrawLine(0,1,self:GetWide(),1)
				color = color_white
				if v:SteamID() == "STEAM_0:1:33431972" then color = Color(0,204,255,255) end
				draw.DrawText(v:Nick(),"NameRank",38,4,color,TEXT_ALIGN_LEFT)				
				draw.DrawText(v:GetNWString("usergroup"),"NameRank",38,19,color,TEXT_ALIGN_LEFT)				
				--draw.DrawText(team.GetName(v:Team()),"OtherInfo",self:GetWide()/2,5,color,TEXT_ALIGN_CENTER)	
				draw.DrawText(job,"OtherInfo",self:GetWide()/2,5,color,TEXT_ALIGN_CENTER)	
				draw.DrawText(v:Frags(),"OtherInfo",self:GetWide()/1.2-27,2.5,color,TEXT_ALIGN_CENTER)
				draw.DrawText(v:Deaths(),"OtherInfo",self:GetWide()/1.2+20,2.5,color,TEXT_ALIGN_CENTER)
				draw.DrawText(v:Ping(),"OtherInfo",self:GetWide()/1.03,2.5,color,TEXT_ALIGN_RIGHT)				
			end
		if LocalPlayer():IsAdmin() or LocalPlayer():IsSuperAdmin() then
			row.DoRightClick = function()
				surface.PlaySound("buttons/button9.wav")
				local options = DermaMenu()
					options:AddOption("Kick", function() RunConsoleCommand("ulx","kick",v:Nick(),"You were kicked by "..LocalPlayer():Nick()) surface.PlaySound("buttons/button9.wav") end):SetImage("icon16/door_out.png")
					options:AddOption("Ban", function() RunConsoleCommand("ulx","ban",v:Nick(),"You were banned by "..LocalPlayer():Nick(),60) surface.PlaySound("buttons/button9.wav") bg:Close() end):SetImage("icon16/delete.png")
					options:AddSpacer()
					options:AddOption("Spectate", function() RunConsoleCommand("ulx","spectate",v:Nick()) surface.PlaySound("buttons/button9.wav") end):SetImage("icon16/zoom.png")
					options:AddSpacer()
				options:Open()
			end
		end
			row.DoClick = function()
				surface.PlaySound("buttons/button9.wav")
				if IsValid(info) then info:SetVisible(false) end
				
			if LocalPlayer():IsAdmin() or LocalPlayer():IsSuperAdmin() then infoy = 700 comy = 270 combgy = 295 combgh = 404 else infoy = 300 comy = 170 combgy = 195 combgh = 99 end
				info = vgui.Create("DFrame")
					info:SetSize(263,infoy)
					info:SetPos(bg:GetWide()-760+y2,ScrH()/2-350)
					info:SetDraggable(false)
					info:ShowCloseButton(false)
					info:SetTitle("")
					info.Paint = function(self)
						draw.RoundedBox(8,0,0,self:GetWide(),self:GetTall(),Color(0,0,0,255))
						draw.RoundedBox(8,1,1,self:GetWide()-2,self:GetTall()-2,clbackground)
						if logo == 0 then
							draw.RoundedBox(0,0,0,self:GetWide(),75,topbackground)
						else
							surface.SetDrawColor(255,255,255,255)
							surface.SetMaterial(logo)
							surface.DrawTexturedRect(0,0,self:GetWide(),75)
						end
						surface.SetDrawColor(61,61,61,255)
						surface.DrawLine(0,0,self:GetWide(),0)
					end
				
				local infotab = vgui.Create("DPanel",info)
					infotab:SetSize(info:GetWide()-2,25)
					infotab:SetPos(1,75)
					infotab.Paint = function(self)
						draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),tagsbackground)
						surface.SetDrawColor(0,0,0,255)
						surface.DrawLine(0,0,self:GetWide(),0)
						surface.SetDrawColor(61,61,61,255)
						surface.DrawLine(0,1,self:GetWide(),1)
						draw.DrawText("Information","Info",5,2.5,color_white,TEXT_ALIGN_LEFT)
					end	
					
				local infobg = vgui.Create("DPanel",info)
					infobg:SetSize(info:GetWide()-2,170)
					infobg:SetPos(1,100)
				if IsValid(v) then	
					infobg.Paint = function(self)
						draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),clbackground)
						surface.SetDrawColor(0,0,0,255)
						surface.DrawLine(0,0,self:GetWide(),0)
						surface.SetDrawColor(61,61,61,255)
						surface.DrawLine(0,1,self:GetWide(),1)
						draw.DrawText(v:Nick(),"Info",70,5,Color(60,60,60),TEXT_ALIGN_LEFT)
						draw.DrawText(v:GetNWString("usergroup"),"Info",69,25,Color(60,60,60),TEXT_ALIGN_LEFT)
						draw.DrawText(team.GetName(v:Team()),"Info",69,45,Color(60,60,60),TEXT_ALIGN_LEFT)
						if LocalPlayer():IsAdmin() or LocalPlayer():IsSuperAdmin() then
							draw.DrawText("Money: $"..money,"Info",69,90,Color(60,60,60),TEXT_ALIGN_LEFT)
							draw.DrawText("Health: "..(v:Health() or 0).."%","Info",69,110,Color(60,60,60),TEXT_ALIGN_LEFT)
							draw.DrawText("Armor: "..(v:Armor() or 0).."%","Info",69,130,Color(60,60,60),TEXT_ALIGN_LEFT)
							draw.DrawText("Energy: "..energy.."%","Info",69,150,Color(60,60,60),TEXT_ALIGN_LEFT)
						end
					end
				end
			
					local selavatar = vgui.Create("AvatarImage",infobg)
						selavatar:SetSize(64,64)
						selavatar:SetPos(2,4)
						selavatar:SetPlayer(v,64)
						AvatarShouldDraw = 0
						
				if LocalPlayer():IsAdmin() or LocalPlayer():IsSuperAdmin() then 				
					local model = vgui.Create("DModelPanel",infobg)
						model:SetSize(150,150)
						model:SetPos(-40,20)
						model:SetModel(v:GetModel())
						model:SetCamPos( Vector(50,-5,65))
						model:SetLookAt( Vector(0,0,66))
					function model:LayoutEntity( Entity ) return end				
				end
				
				local commandstab = vgui.Create("DPanel",info)
					commandstab:SetSize(info:GetWide()-2,25)
					commandstab:SetPos(1,comy)
					commandstab.Paint = function(self)
						draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),tagsbackground)
						surface.SetDrawColor(0,0,0,255)
						surface.DrawLine(0,0,self:GetWide(),0)
						surface.SetDrawColor(61,61,61,255)
						surface.DrawLine(0,1,self:GetWide(),1)
						draw.DrawText("Commands","Info",5,2.5,color_white,TEXT_ALIGN_LEFT)
					end
					
				local commandsbg = vgui.Create("DScrollPanel",info)
					commandsbg:SetSize(info:GetWide()-2,combgh)
					commandsbg:SetPos(1,combgy)
					commandsbg:SetPadding(5)
					commandsbg.Paint = function(self)
						draw.RoundedBoxEx(8,0,0,self:GetWide(),self:GetTall(),clbackground,false,false,true,true)
						surface.SetDrawColor(0,0,0,255)
						surface.DrawLine(0,0,self:GetWide(),0)
						surface.SetDrawColor(61,61,61,255)
						surface.DrawLine(0,1,self:GetWide(),1)
					end	
					
				if LocalPlayer():IsAdmin() or LocalPlayer():IsSuperAdmin() and IsValid(v) then 
				
					kick(commandsbg,5,10,"Kick","Enter the reason for kicking him.","icon16/door_out.png",Color(255,50,50,255),"kick",v:Nick())
					ban(commandsbg,135,10,"Ban","Enter the reason for banning him.","icon16/door.png",Color(255,50,50,255),"ban",v:Nick())	
					command(commandsbg,5,50,"Freeze","icon16/tag_blue.png",Color(50,50,250,255),"ulx","freeze",v:Nick())
					command(commandsbg,135,50,"Un Freeze","icon16/tag_blue_delete.png",Color(50,50,250,255),"ulx","unfreeze",v:Nick())
					command(commandsbg,5,90,"Slay","icon16/wand.png",Color(250,150,0,255),"ulx","slay",v:Nick())
					command(commandsbg,135,90,"Slap","icon16/sport_raquet.png",Color(250,150,0,255),"ulx","slap",v:Nick())
					command(commandsbg,5,130,"GoTo","icon16/arrow_up.png",Color(50,250,50,255),"ulx","goto",v:Nick())
					command(commandsbg,135,130,"Bring","icon16/arrow_redo.png",Color(50,250,50,255),"ulx","bring",v:Nick())
					command(commandsbg,5,170,"Teleport","icon16/arrow_out.png",Color(50,250,50,255),"ulx","teleport",v:Nick())		
					command(commandsbg,135,170,"NoClip","icon16/weather_sun.png",Color(255,250,255,255),"ulx","noclip",v:Nick())
					command(commandsbg,5,210,"Mute Chat","icon16/user_delete.png",Color(255,200,0,255),"ulx","mute",v:Nick())
					command(commandsbg,135,210,"UnMute Chat","icon16/user_comment.png",Color(255,200,0,255),"ulx","unmute",v:Nick())
					command(commandsbg,5,250,"Mute Mic","icon16/sound_mute.png",Color(178,0,255,255),"ulx","gag",v:Nick())
					command(commandsbg,135,250,"UnMute Mic","icon16/sound.png",Color(178,0,255,255),"ulx","ungag",v:Nick())
					
					command(commandsbg,5,290,"Strip","icon16/gun.png",Color(128,128,128,255),"ulx","strip",v:Nick())
					command(commandsbg,135,290,"Spectate","icon16/world.png",Color(128,128,128,255),"ulx","spectate",v:Nick())
					command(commandsbg,5,330,"Jail","icon16/text_align_justify.png",Color(0,0,0,255),"ulx","jail",v:Nick())
					
					local setteam = vgui.Create("DButton",commandsbg)
						setteam:SetSize(120,35)
						setteam:SetPos(135,330)
						setteam:SetTextColor(Color(255,255,255))
						setteam:SetText("Set Team")	
						setteam:SetImage("icon16/application_view_tile.png")	
						setteam.Paint = function()
							draw.RoundedBox(0,0,0,setteam:GetWide(),setteam:GetTall(),Color(51,51,51,255))
							surface.SetDrawColor(0,0,0,255)
							surface.DrawOutlinedRect(0,0,setteam:GetWide(),setteam:GetTall())
						end
						setteam.DoClick = function()
							surface.PlaySound("buttons/button9.wav")
						local menu = DermaMenu()
						local Title = vgui.Create("DLabel")
						Title:SetText("  Teams:
")
						Title:SetFont("UiBold")
						Title:SizeToContents()
						Title:SetTextColor(color_black)
							menu:AddPanel(Title)
							for k,pls in SortedPairsByMemberValue(team.GetAllTeams(), "Name") do
								menu:AddOption(pls.Name, function() RunConsoleCommand("_FAdmin", "setteam", v:Nick(), k) end)
							end
							menu:Open()
						end
					else
						playercom(commandsbg,5,10,"Copy SteamID","icon16/tag_blue.png",Color(255,200,0,255),"The SteamID",v:SteamID())
						playercom(commandsbg,135,10,"Copy Name","icon16/user_edit.png",Color(255,200,0,255),"The Name",v:Nick())
						playercom(commandsbg,5,50,"Copy Rank","icon16/shield.png",Color(255,200,0,255),"The Rank",v:GetNWString("usergroup"))
						
						local userbtn = vgui.Create("DButton",commandsbg)
							userbtn:SetSize(120,35)
							userbtn:SetPos(135,50)
							userbtn:SetTextColor(Color(255,255,255))
							userbtn:SetText("Steam Profile")
							userbtn:SetImage("icon16/world.png")
							userbtn.Paint = function(self)
									draw.RoundedBox(0,0,0,self:GetWide(),self:GetTall(),Color(51,51,51,255))
									surface.SetDrawColor(Color(255,50,50,255))
									surface.DrawOutlinedRect(0,0,self:GetWide(),self:GetTall())
							end

							userbtn.DoClick = function()
								surface.PlaySound("buttons/button9.wav")
								chat.AddText(Color(255,60,60),"[Steam Profile]",Color(255,255,255)," you opened "..v:Nick().."'s steam profile.")
								v:ShowProfile()
							end
				end -- End if Player is Admin
			end -- End Row DoClick
			
		local avatar = vgui.Create("AvatarImage",row)
			avatar:SetSize(30,30)
			avatar:SetPos(2,4)
			avatar:SetPlayer(v,64)
			AvatarShouldDraw = 0
			
		function row:Think() 
			if not IsValid(v) then 
				row:Remove()
				if IsValid(avatar) then avatar:Remove() end	
				if IsValid(info) then info:Remove() end
			end	
		end -- End Row Think	
	end -- End For Loop
end // End Scoreboard

function GM:ScoreboardHide()
gui.EnableScreenClicker(false)
	if IsValid(bg) then bg:Remove() end
	if IsValid(info) then info:Remove() end
end

HUD Code:


local hudTheme = HUDTheme[HUDSettings.theme]
vdrawav = true

surface.CreateFont( "NAMEFONT", {
 font = hudTheme.font.nickfont,
 size = hudTheme.font.nicksize,
 weight = hudTheme.font.nickweight,
 antialias = true,
 outline = hudTheme.font.nickoutline
} )

surface.CreateFont( "SALARY", {
 font = hudTheme.font.salaryfont,
 size = hudTheme.font.salarysize,
 weight = hudTheme.font.salaryweight,
 antialias = true,
 outline = hudTheme.font.salaryoutline
} )

surface.CreateFont( "WALLETFONT", {
 font = hudTheme.font.walletfont,
 size = hudTheme.font.walletsize,
 weight = hudTheme.font.walletweight,
 antialias = true, 
 outline = hudTheme.font.walletoutline
 } )

surface.CreateFont( "JOBFONT", {
 font = hudTheme.font.jobfont,
 size = hudTheme.font.jobsize,
 weight = hudTheme.font.jobweight,
 antialias = true, 
 outline = hudTheme.font.joboutline
} )
 
surface.CreateFont( "HPFONT", {
 font = hudTheme.font.hpfont,
 size = hudTheme.font.hpsize,
 weight = hudTheme.font.hpweight,
 antialias = true,
 outline = hudTheme.font.hpoutline
} )

surface.CreateFont( "ARFONT", {
 font = hudTheme.font.arfont,
 size = hudTheme.font.arsize,
 weight = hudTheme.font.arweight,
 antialias = true,
 outline = hudTheme.font.aroutline
} )

local hideHUDElements = {
	-- if you DarkRP_HUD this to true, ALL of DarkRP's HUD will be disabled. That is the health bar and stuff,
	-- but also the agenda, the voice chat icons, lockdown text, player arrested text and the names above players' heads
	["DarkRP_HUD"] = false,

	-- DarkRP_EntityDisplay is the text that is drawn above a player when you look at them.
	-- This also draws the information on doors and vehicles
	["DarkRP_EntityDisplay"] = false,

	-- DarkRP_ZombieInfo draws information about zombies for admins who use /showzombie.
	["DarkRP_ZombieInfo"] = false,

	-- This is the one you're most likely to replace first
	-- DarkRP_LocalPlayerHUD is the default HUD you see on the bottom left of the screen
	-- It shows your health, job, salary and wallet
	["DarkRP_LocalPlayerHUD"] = true,

	-- Drawing the DarkRP agenda
	["DarkRP_Agenda"] = false
}

-- this is the code that actually disables the drawing.
hook.Add("HUDShouldDraw", "HideDefaultDarkRPHud", function(name)
	if hideHUDElements[name] then return false end
end)

HM = {}
HM.UsingHungerMod = false

local function DrawPNG(pngtex, x, y, w, h, color)
	surface.SetMaterial( pngtex )
	surface.SetDrawColor(color)
	surface.DrawTexturedRect( x, y, w, h )
end

local function DrawPlayerAvatar( p, x ,y )
	av = vgui.Create("AvatarImage")
	av:SetPos(x,y)
	av:SetSize(64, 64)
	av:SetPlayer( p, 64 )
	return av
end

local function formatNumber(n)
	if not n then return "" end
	if n >= 1e14 then return tostring(n) end
    n = tostring(n)
    local sep = sep or ","
    local dp = string.find(n, "%.") or #n+1
	for i=dp-4, 1, -3 do
		n = n:sub(1, i) .. sep .. n:sub(i+1)
    end
    return n
end

function DoAvatar()
	if IsValid(HUDAVATAR) then
		if HUDAVATAR:IsValid() then
			HUDAVATAR:Remove()
		end
	end
	if hudTheme.avatar == true then
		HUDAVATAR = DrawPlayerAvatar( LocalPlayer(), hudTheme.mainx + hudTheme.avatarx ,hudTheme.mainy + hudTheme.avatary )
	end
	vdrawav = false
end

function hidenorm(name)
    for k, v in pairs{"CHudHealth", "CHudBattery", "CHudAmmo", "CHudSecondaryAmmo"} do
        if name == v then return false end
    end
return true

end
hook.Add("HUDShouldDraw", "hidedefhud", hidenorm)

local function hudPaint()
   localplayer = localplayer and IsValid(localplayer) and localplayer or LocalPlayer()
   if not IsValid(localplayer) then return end
   if vdrawav == true then DoAvatar() end

   local shouldDraw = hook.Call("HUDShouldDraw", GAMEMODE, "DarkRP_HUD")
   if shouldDraw == false then return end

   Scrw, Scrh = ScrW(), ScrH()
   RelativeX, RelativeY = 0, Scrh - 10

   local Salary =    "" .. GAMEMODE.Config.currency .. (localplayer:getDarkRPVar("salary") or 0)
   local Job = localplayer:getDarkRPVar("job") or ""
   local Wallet = "" .. GAMEMODE.Config.currency .. (formatNumber(localplayer:getDarkRPVar("money") or 0) or 0)   
   local HW, HH = hudTheme.mainw, hudTheme.mainh
   local HX, HY = hudTheme.mainx, hudTheme.mainy
   
   -- Main
	
	draw.RoundedBox( 0, HX, HY, HW, HH, hudTheme.maincolor )
	if hudTheme.pattern == true then
		DrawPNG(Material("hud/"..hudTheme.patternpng), HX, HY, HW, HH, Color(255,255,255,hudTheme.patternalpha))
	end
	if hudTheme.gradient == true then
		DrawPNG(Material("hud/"..hudTheme.gradpng), HX, HY, HW, HH, Color(255,255,255,hudTheme.gradalpha))
	end
	draw.RoundedBox( 0, HX, HY - 1, HW, 1, Color(20,20,20,240) )
	draw.RoundedBox( 0, HX, HY + HH, HW, 1, Color(20,20,20,240) )
	draw.RoundedBox( 0, HX + HW, HY, 1, HH, Color(20,20,20,240) )
	draw.RoundedBox( 0, HX - 1, HY, 1, HH, Color(20,20,20,240) )
	if hudTheme.avatar == true then
		draw.RoundedBox( 0, hudTheme.mainx + hudTheme.avatarx - 1, hudTheme.mainy + hudTheme.avatary - 1, 66, 66, Color(20,20,20,240) )
	end
		
   -- Name
   draw.SimpleText(LocalPlayer():Nick() ,"NAMEFONT", HX + hudTheme.nickx, HY + hudTheme.nicky, hudTheme.nickcol, TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)

   -- Job
   draw.SimpleText(Job, "JOBFONT", HX + hudTheme.jobx, HY + hudTheme.joby, hudTheme.jobcol, TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)

   -- Wallet
   surface.SetFont("WALLETFONT")
   local walletwidth = surface.GetTextSize( "Wallet " .. Wallet )
   draw.SimpleText("Wallet " .. Wallet, "WALLETFONT", (HX + HW) - walletwidth - hudTheme.walletx ,HY + hudTheme.wallety, hudTheme.walletcol, TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT)

   -- Salary
   surface.SetFont("SALARY")
   local salarywidth = surface.GetTextSize( Salary )
   draw.SimpleText(Salary, "SALARY", (HX + HW) - salarywidth - hudTheme.salaryx , HY + hudTheme.salaryy, hudTheme.salarycol, TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT) 
   
   -- Health
    local Health = LocalPlayer():Health()
    local DrawHealth = math.Min(Health / GAMEMODE.Config.startinghealth, 1)
	local hpsettings = hudTheme.healthbar
	local hpcorn = hpsettings.corners
	if hpsettings.center == true then
		draw.RoundedBoxEx(hpsettings.bordersize, HX + hpsettings.x, HY + hpsettings.y, HW - (hpsettings.x * 2), hpsettings.h, hpsettings.bg , hpcorn[1], hpcorn[2], hpcorn[3], hpcorn[4])
	else
		draw.RoundedBoxEx(hpsettings.bordersize, HX + hpsettings.x, HY + hpsettings.y, hpsettings.w, hpsettings.h, hpsettings.bg , hpcorn[1], hpcorn[2], hpcorn[3], hpcorn[4])	
	end
    if Health > 0 then
		if hpsettings.center == true then
			draw.RoundedBoxEx(hpsettings.bordersize, HX + hpsettings.x, HY + hpsettings.y, (HW - (hpsettings.x * 2)) * DrawHealth, hpsettings.h, hpsettings.fg, hpcorn[1], hpcorn[2], hpcorn[3], hpcorn[4])
		else
			draw.RoundedBoxEx(hpsettings.bordersize, HX + hpsettings.x, HY + hpsettings.y, hpsettings.w * DrawHealth, hpsettings.h, hpsettings.fg, hpcorn[1], hpcorn[2], hpcorn[3], hpcorn[4])
		end
	end
	if hpsettings.text == true then
		surface.SetFont("HPFONT")
		local htxtsize = surface.GetTextSize( "Health: "..Health )
		if hpsettings.textcenter == true then
			draw.DrawText("Health: "..Health, "HPFONT", HX + (HW / 2) - (htxtsize / 2), HY + hpsettings.texty, Color(235,235,235,255), TEXT_ALIGN_LEFT)
		else
			draw.DrawText("Health: "..Health, "HPFONT", HX + hpsettings.textx, HY + hpsettings.texty, Color(235,235,235,255), TEXT_ALIGN_LEFT)
		end
	end
        -- Armor
    local Armor = LocalPlayer():Armor()
	local arsettings = hudTheme.armorbar
	local arcorn = arsettings.corners
	if arsettings.center == true then
		draw.RoundedBoxEx(arsettings.bordersize, HX + arsettings.x, HY + arsettings.y, HW - (arsettings.x * 2), arsettings.h, arsettings.bg, arcorn[1], arcorn[2], arcorn[3], arcorn[4] )
    else
		draw.RoundedBoxEx(arsettings.bordersize, HX + arsettings.x, HY + arsettings.y, arsettings.w, arsettings.h, arsettings.bg, arcorn[1], arcorn[2], arcorn[3], arcorn[4] )
	end
	if Armor > 0 then
		if arsettings.center == true then
			draw.RoundedBoxEx(arsettings.bordersize, HX + arsettings.x, HY + arsettings.y, (HW - (arsettings.x * 2)) * Armor / 100, arsettings.h, arsettings.fg, arcorn[1], arcorn[2], arcorn[3], arcorn[4] )
		else
			draw.RoundedBoxEx(arsettings.bordersize, HX + arsettings.x, HY + arsettings.y, arsettings.w * Armor / 100, arsettings.h, arsettings.fg, arcorn[1], arcorn[2], arcorn[3], arcorn[4] )
		end
	end
	if arsettings.text == true then
		surface.SetFont("ARFONT")
		local atxtsize = surface.GetTextSize( "Armor: "..Armor )
		if arsettings.textcenter == true then
			draw.DrawText("Armor: "..Armor, "ARFONT", HX + (HW / 2) - (atxtsize / 2), HY + arsettings.texty, Color(255,255,255,255), TEXT_ALIGN_LEFT)
		else
			draw.DrawText("Armor: "..Armor, "ARFONT", HX + arsettings.textx, HY + arsettings.texty, Color(255,255,255,255), TEXT_ALIGN_LEFT)			
		end
	end		
end

hook.Add("HUDPaint", "DarkRP_Mod_HUDPaint", hudPaint)

If you see anything that would be why the Dark RP door labels aren’t appearing, help would be MUCH appreciated.


	-- DarkRP_EntityDisplay is the text that is drawn above a player when you look at them.
	-- This also draws the information on doors and vehicles
	["DarkRP_EntityDisplay"] = false,

That’s why.

Oh jeese, thanks man!

EDIT: One thing, it says if you set it to true it will disable all things. And, did this scoreboard disable Fadmin?

Doors are still broken. Changed [“DarkRP_EntityDisplay”] = false, to true, still broken.

Any help is appreciated, my server is half broken. I need to fix this ASAP.

[editline]10th May 2014[/editline]