cam.Start3D2D shows surface.DrawRects, but no text.

[del]Trying to draw text, but doesn’t work. The surface.DrawRect() displays, but text does not. I’ve tested this with another weapon that I’ve used 3D2D (tested with the same draw.DrawText() func, I also actually copied the code from the other wep too) and it displays correctly. There’s obviously something I’m missing if the rect draws but the text does not. :expressionless:


local offset = Vector( -1, -2.75, 1.3 )
local aoffset = Angle( -90, -1.25, 45 )
function SWEP:PostDrawViewModel( vm )
	local bone = vm:LookupBone( "spinner" )
	local m = vm:GetBoneMatrix( bone )
	local pos, ang = m:GetTranslation(), m:GetAngles()
	pos = pos + ang:Forward() * offset.x + ang:Right() * offset.y + ang:Up() * offset.z

	if aoffset.yaw ~= 0 then ang:RotateAroundAxis( ang:Up(), aoffset.yaw ) end
	if aoffset.pitch ~= 0 then ang:RotateAroundAxis( ang:Right(), aoffset.pitch ) end
	if aoffset.roll ~= 0 then ang:RotateAroundAxis( ang:Forward(), aoffset.roll ) end

	local x, y = 0, 0

	cam.Start3D2D( pos, ang, 0.02 )
        surface.SetDrawColor( 35, 35, 35, 255 )
        surface.DrawRect( x, y, 130, 140 )
		draw.DrawText("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", gui.EasyFont(256), 0, 0, Color(255,255,255,255) )
	cam.End3D2D()
end

[/del]

Any help before I commit sudoku will be fantastic.

Resolved: I’m a fuckhead and had the angles flipped so the text was invisible. Light me on fire.

okay :fire::fire::fire::fire: