buy peppermint oil, soak cotton balls in oil, stuff cotton balls all over engine bay, compartments, trunks, underbody. repeat once per month or so, whenever you can't smell it anymore.
https://www.theexterminators.ca/blog/peppermint-oil-work-rat...
https://www.theexterminators.ca/blog/peppermint-oil-work-rat...