Hey, I know for sure that you can find this with the search function, but here's this since you when through the trouble of posting:
Code:
local State = -1
chat.AddText(Color(255,0,0),"Printer finder loaded.")
LocalPlayer():EmitSound("buttons/combine_button7.wav",500,100)
concommand.Add("toggle_finder", function()
State = State * -1
if State == 1 then
hook.Add("HUDPaint","printerfinder", function()
for k,Ent in pairs(ents.GetAll()) do
if string.find(Ent:GetClass(),"printer") then
local PrinterPos = (Ent:GetPos()+Vector(0,0,20)):ToScreen()
draw.SimpleTextOutlined("Printer","Trebuchet18",PrinterPos.x,PrinterPos.y,Color(255,0,0),0,0,1,Color(255,255,255))
end
end
end)
chat.AddText(Color(255,0,0),"Printer finder turned on.")
LocalPlayer():EmitSound("UI/buttonclickrelease.wav",500,100)
else
hook.Remove("HUDPaint","printerfinder")
chat.AddText(Color(255,0,0),"Printer finder turned off.")
LocalPlayer():EmitSound("UI/buttonclickrelease.wav",500,100)
end
end)
Type toggle_finder to start searching for printers.