The military thing is hit or miss in my mind.
I got out of a ticket driving through Nevada on my way to Fort Leonard Wood, Missouri, and the guy let me off on a professional courtesy. I wasn't even going to mention the military thing, but he saw my ID in my wallet.
However, when I was stationed in Ft. Lewis, WA I was nailed without a second thought. I was even wearing my uniform at the time.