Mice invasion

I store my car outside every winter for 6 months. We live in a rural area. This year mice had made a nasty mess in my cabin filter. The filter was replaced but the air entering the car still has a mousy oder. I was told that placing lots of moth balls on top of the engine would discourage the mice from nesting in my engine/car- has this worked for anyone?