function antiPropDamage (victim, attacker) if (attacker:IsWorld()) then return false end if (attacker:IsValid()) then if (attacker:GetClass() == "prop_physics" or attacker:IsWorld() or attacker:GetClass() == "prop_vehicle_jeep" or attacker:GetClass() == "darkrp_laws") then return false else if (attacker:IsPlayer()) then if (attacker:InVehicle()) then return false end else return true end end end end hook.Add("PlayerShouldTakeDamage", "nopropdamage", antiPropDamage)