Drawing on a entity, LocalPlayer():GetEyeTrace():Entity:GetPos() Cam.Start3D2D [Help]

Hey i’ve been hard working on this shit, and can’t get it to work! It won’t simply draw, and doesn’t give me any errors.
I’ve been testing it with print(“Success!”) a few places, and seams to work fine, then looking at a door in a range of 200.

Anyone who can help?



	local tr = LocalPlayer():GetEyeTrace()
	local Pos = tr.Entity:GetPos()
	local Ang = tr.Entity:GetAngles()
	
	if tr.Entity:IsOwnable() and tr.Entity:GetPos():Distance(localplayer:GetPos()) < 200 then
		Ang:RotateAroundAxis(Ang:Up(), 90)
		cam.Start3D2D(Pos + Ang:Up(), Ang, 1)
			draw.RoundedBox( 8, 100, 100, 100, 100, Color( 255, 255, 255 ) );
		cam.End3D2D()
		draw.RoundedBox( 8, Pos.x, Pos.y, 100, 100, Color( 255, 255, 255 ) );
	end


what is it you are trying to do exactly?

and what gamemode/addon is this for? it looks like either PERP or DarkRP

I solved it :slight_smile: