The guy’s first mistake was consenting to having his car searched.
My brother once told me, never, ever consent to a search. “Even if I’ve done nothing wrong, I asked?” “Especially if you’ve done nothing wrong” was his reply.
My brother is an assistant district attorney.
Sounds like some good advice.