IF...and only IF
1) He was pulled over for a supposed traffic violation
and
2) His car tags, inspection sticker and license were legal and up to date
and
3) He had no wants or warrants for his arrest
Then the police cannot search your vehicle without your consent or unless they have Probable Cause to believe a crime is being commited.
In the case of your friend's supposed scene ("delivering blow") PC could be established if they could see cocaine in plain view when looking into the vehicle or if they had a reliable informant who testified that dude had product on him.
====
There's no need to "lock your keys in your car". But it is smart business to lock your car (power locks rock steady) as you step from the vehicle and then just drop your keys into your pocket.
If you have met the conditions I wrote above, you are not required to open your vehicle nor permit a search.
NEVER physically resist a search, even if you are in the right. But at the same time, NEVER, NEVER, NEVER consent to a search of your person, your vehicle or your residence.
Police have the right to do a "pat down" of your person for the purpose of detecting a possible weapon. But they do not have the right to demand you empty your pockets or otherwise reveal what is on your person unless they have clear reason to believe you might be carrying a weapon.
thanks for reply. its hard to believe something so simple could save you years in jail.