Cedar oil, lavender oil, peppermint oil will keep them away from the wiring on your car.

Auto parts suppliers went eco a decade ago, using corn based plastics as opposed to petroleum based. Yummy! As far as keeping the pack rats away, get a ferret.