Some help here How to detect this entity

Well guys i was working in this code so my question is


function ENT:Draw()
	self:DrawModel()

	local pos = self:EyePos()
	local ang = self:GetAngles()
	
	pos.z = pos.z - 2
	pos = pos:ToScreen()
	pos.y = pos.y - 22
	
	surface.SetFont("MenuLarge")
	
    local e = LocalPlayer():GetEyeTrace()
	local d = LocalPlayer():GetPos()
	
	if IsValid(e.Entity) and e.Entity:GetPos():Distance(d) < 250  then
		cam.Start2D();
			draw.DrawText("Regular Money Printer", "MenuLarge", pos.x + 3, pos.y-4, Color(0, 0, 0, 255), TEXT_ALIGN_CENTER)
			draw.DrawText("Regular Money Printer", "MenuLarge", pos.x + 2, pos.y-5, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER)
		cam.End2D();  
	end
end

So with that code i get this result

so the point is… when i aim 1 of these the name text show in both, here a really example what i want…

EDIT: I got this picture from another server…

if IsValid(e.Entity) and self.Entity == e.Entity and e.Entity:GetPos():Distance(d) < 250 then