No damage taken from vehicles.


I just put TDMCars on my server, and when or if it starts to get popular, I don’t want people getting run over all the times. I’ve seen on Modified DarkRP that they have something that makes it so you can’t get run over by cars. I was just wondering if any of you know the code for this and would be willing to share?

Thank you.

Use the EntityTakeDamage hook, check if inflictor:IsVehicle(), then return false.

What file would that be in? And can you tell me what exactly to type where?

No, this is developer discussion and not people working for free. here you can pay someone and get it.