If an officer asks "Can I search your truck" and you say "yes", the officer can legally search your truck.