• Help with PlayerTraceAttack&PostDrawTranslucentRenderables
    0 replies, posted
can you help me with this error " [ERROR] external:4: '}' expected (to close '{' at line 2) near 'endbt'" please? hook.Add("PlayerTraceAttack", "Get", function(ply, dmginfo, dir, trace)  table.insert(buffer, {  start = trace.StartPos  endbt = trace.HitPos  deadtime = CurTime() + 10  })  end)  hook.Add("PostDrawTranslucentRenderables", "Draw", function(bDepth, bSkybox)  if bSkybox then return end  for k, v in pairs(buffer) do  if !v or (v.deadtime and CurTime() >= v.deadtime) then  table.remove(buffer, k)  continue  end  render.DrawLine(buffer.start, buffer.endbt, Color(255, 0, 0), false)  end  end)
Sorry, you need to Log In to post a reply to this thread.