function DrawText()
local tr = LocalPlayer():GetEyeTrace()
local pos = tr.Entity:GetPos()
pos.z = pos.z + 8
pos = pos:ToScreen()
if tr.Entity:GetClass() == "weed_factory" then
draw.SimpleText("Marijuana Factory", "TargetID", pos.x + 1, pos.y + 1, Color(0,0,0,200),1) draw.SimpleText("Marijuana Factory", "TargetID", pos.x, pos.y, Color(255,255,255,200),1)
if tr.Entity:GetClass() == "water_factory" then
draw.SimpleText("Water Factory", "TargetID", pos.x + 1, pos.y + 1, Color(0,0,0,200),1) draw.SimpleText("Water Factory", "TargetID", pos.x, pos.y, Color(255,255,255,200),1) end
end
end
hook.Add("HUDPaint", "DrawText", DrawText)