I have gotten out of nearly every possible ticket in my lifetime, by doing the following.
WORRY about the safety of the police officer. I pull WAAAAY far off to the side so they don’t have to risk their life standing in the road to talk to me through the window.
I have get my drivers license and insurance out BEFORE they get to the window and I have the window rolled down and my hands clearly visible.
Then I sincerely admit to anything I was doing that prompted them to pull me over in the first place, and apologize.
Because to be 100% I FEEL BAD for cops! they have a crappy job that doesn’t pay very much and now because I was an idiot they had to pull me over and risk their life to give me a ticket or whatever, and I just let those real feelings show .. and PRESTO!! they nearly always let me go with a warning.
I have done that without fail. Still got the tickets.