Yeah I have edited that part to: (with this im able to walk through the first checkpoint, but for some reason that causes the race to finish instead)
if (elem ~= g_Vehicle and tostring(g_Vehicle) ~= "false") or isVehicleBlown(g_Vehicle) or getElementHealth(g_Me) == 0 or Spectate.active then