When using render.Drawbeam, all I get is a 2d image!


      pointTable* = {mathstartpos, (mathpos + Vector(0,0,(uphight ))), 10, 1, 4, Color(255,255,255)} --the value to begin the bolt on; on the first iteration through, this is startpos/point where barrel is
      
    end
      function startDoodling()

        for key, val in pairs(pointTable) do
          render.SetMaterial( matEl )
          --print(unpack(val))
          render.DrawBeam(unpack(val))
        end

    end
    hook.Add("PostDrawOpaqueRenderables", "LightningDoodles", startDoodling)

whenever i use this code, all i get is a 2d image that doesn’t even obey the arguments in the function! can anyone help?