3D2D Flickering Image

I have an issue with draw texture and 3d2d where it flickers black and draws lines in it. Any idea the cause and even better the solution? I’m going to put a video to show exactly what i mean when it is done uploading.

This is the whole code for the function:
[lua]surface.CreateFont( “ChatFont”, 72, 200, true, false, “Text64” )
function DrawBeacons()
local ang = LocalPlayer():EyeAngles()
ang:RotateAroundAxis( ang:Forward(), 90 )
ang:RotateAroundAxis( ang:Right(), 90 )

for _, ent in pairs(ents.FindByClass("cw_flag")) do
	if(ent != nil)then
		if (LocalPlayer():Team() != ent:GetNWInt("team")) then
			cam.Start3D2D(ent:GetPos()+Vector(0,0,40), Angle(0,ang.y,90), 0.3)
				surface.SetDrawColor( 255, 255, 255, 220 );
				surface.SetTexture( surface.GetTextureID("mhs/green_arrow") )
				surface.DrawTexturedRect( -128, -90-128, 256, 256 )
				struc = {}
				struc["pos"] = {0, -110}
				struc["color"] = Color(255, 255, 255, 240)
				struc["text"] = "Capture"
				struc["font"] = "Text64"
				struc["xalign"] = TEXT_ALIGN_CENTER
				struc["yalign"] = TEXT_ALIGN_CENTER
				draw.TextShadow( struc, 2, 160 )
			cam.End3D2D() 
		end
	end
end

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

What does your vmt look like because it should be something like this
[Lua]
“UnlitGeneric”
{
“$basetexture” “yourtexture”
“$nolod” 1
“$vertexalpha” 1
“$vertexcolor” 1
}[/Lua]

Worked perfect dude thanks alot.