<human>: A friend of mine (20yo) got pulled over for having expired tags on his license plate. The officer asked for my friend's ID, at which point my friend gave the officer his ID. The officer then asked if he had a fake ID in his wallet. I am not sure if the officer saw it when my friend opened his wallet originally or if he just assumed a 20yo probably has one, but he had my friend go through his entire wallet to show the officer everything in it. Eventually, my friend got to his fake ID, at which point the officer charged him for possession of false identification. My question is, did the officer have the right to have my friend empty his entire wallet during a routine traffic stop for expired tags?

I would also like to add that the officer afterwards asked another friend in the car (20yo) if he had a fake ID on him too, to which the friend replied "I'm pretty sure I have the right to not answer that question." I don't know the specifics but after that the second friend was **not** asked to empty his wallet.

Give me the gist of the text in a nutshell
<bot>: Friend pulled over for expired tags, officer makes him empty entire wallet to see if he had a fake ID on him. Did the officer have the right?