Cop says no to chasing cars involved in shoot-out - funny scene

Unfortunately, I can’t remember the movie at all. It’s just a scene (that was in the trailer) where a car and truck go through a small town speed trap while one is shooting at the other (possibly iwth a very large gun or rocket launcher.) The young cop goes to turn the blue lights on. The older cop is like, “No way!”