Car Damage help

Hi I would like to know if there is any way to prevent cars from damaging players? None of the recent scripts work, due to the fact that Garry updates the game quite often. If anyone could help with this matter that would be greatly appreciated.

Thank you facepunch.




function GM:PlayerShouldTakeDamage(ply,ent)
  if ent:GetClass() == "the_cars_class" then
     return false
  else
    return true
  end
end


might work

O thank you very much.