How can mice and rats under the hood be controlled?

You are parking in their environment so either you build a garage and keep the door closed and use traps to get the ones that get in…or use live traps baited with peanut butter/bird seeds…relocate them at least 1 mile away or they will return…done the latter and it is very effective…just takes time and patience.