I’ve been trying for the best part of an hour now to get a simple example of 3D2D working. This is my code being run on the client side:
[lua]
function drawTest()
cam.Start3D2D( Vector(0, 0, 30), Angle(0, 0, 0), 2 )
draw.DrawText(“Testing”, “ScoreboardText”, 0, 0, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER )
cam.End3D2D()
end
hook.Add( “RenderScreenspaceEffects”, “Test3D2D”, drawTest );
[/lua]
I also tried to hook using HUDPaint. From my understand this should create text at the origin 30 units high. What am I doing wrong?