Rendering Models in RT/2D3D

Hi guys need a bit of help of you.
So im trying to render a clientside model in a RenderTarget/2D3D.
But when i attempt to draw i get an instant clietside crash.

Code:
[lua]
//Here is how i Create
entity = ClientsideModel( model, RENDER_GROUP_OPAQUE_ENTITY )
entity:SetNoDraw( false )
local sequence = entity:LookupSequence( “ragdoll” )
if (sequence > 0) then entity:ResetSequence( sequence ) end

//Here is the cotents of my Draw fucntion
cam.Start3D( campos, (lookpos-campos):Angle(), fov, x, y, w, w )
cam.IgnoreZ( true )
render.SuppressEngineLighting( true )
render.SetLightingOrigin( entity:GetPos() )
render.ResetModelLighting( 1, 1, 1 )
render.SetColorModulation( r/255, g/255, b/255 )
render.SetBlend( a/255 )

					entity:DrawModel()
				   
					render.SetColorModulation( 1, 1, 1 )
					render.SetBlend( 1 )
			render.SuppressEngineLighting( false )
	cam.IgnoreZ( false )

cam.End3D()
[/lua]

-Bump-

-snip-