Issues/Help with 3d2d.

Alright I’m trying to make an entity use 3D2D when players eye trace is looking at an Entity.
BUT I cannot create an entity clientside, so…How would I do what my code is trying to do,
but in another way where it will actually work?

If the code below isn’t enough,
just use a gunlab as an example, much simpler.

Here it is:

[LUA]
include(“shared.lua”)
surface.CreateFont( “Gun1”, {
font = “Bebas Neue”,
size = 32,
antialias = true,
underline = true,
} )
surface.CreateFont( “Gun2”, {
font = “Bebas Neue”,
size = 28,
antialias = true,
} )
function ENT:Initialize()
end
function ENT:Draw()
self:DrawModel()
end
local function DrawTheNiggerText()
local svt40 = ents.Create( “SVT_40” )
local ply = LocalPlayer()
if !ply or !ply:IsValid() then return end
local tr = ply:GetEyeTrace()
local ang = ply:EyeAngles()
if tr.Hit and tr.Entity:IsValid() and tr.Entity:GetClass() == “svt_40” then

    cam.Start3D2D( svt40:GetPos(), Angle( 0, ang.y - 90, 90 ), 1 )
            draw.SimpleText( svt40.Primary.Damage, "Gun1", 0, 0, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER )
    cam.End3D2D()

end
end
hook.Add(“PostDrawOpaqueRenderables”, “svt_40”, DrawTheNiggerText)
[/LUA]

Any help here?

[lua]include(“shared.lua”)
surface.CreateFont( “Gun1”, {
font = “Bebas Neue”,
size = 32,
antialias = true,
underline = true,
} )
surface.CreateFont( “Gun2”, {
font = “Bebas Neue”,
size = 28,
antialias = true,
} )

local function DrawTheNiggerText()
local ply = LocalPlayer()
if !ply or !ply:IsValid() then return end
local tr = ply:GetEyeTrace()
local ang = ply:EyeAngles()
if tr.Hit and tr.Entity:IsValid() and tr.Entity:GetClass() == “svt_40” then

    cam.Start3D2D( tr.Entity:GetPos(), Angle( 0, ang.y - 90, 90 ), 1 )
            draw.SimpleText( tr.Entity.Primary.Damage, "Gun1", 0, 0, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER )
    cam.End3D2D()

end
end
hook.Add(“PostDrawOpaqueRenderables”, “svt_40”, DrawTheNiggerText)[/lua]

Well the problem now is how do I get it to call for a weapons stats?
Since the entity itself has no damage?