Ok,

1. Why didn't you just drive home in the truck? Why did you just walk away from it?

2. That was probably an illegal search. If you go to court you better tell your lawyer that. The evidence will not be admissable in court and you will probably get off with nothing. The cop will get in trouble for violating your rights. Now, if he asked if he could search the vehicle and you said yes... Well, that sucks.