Knowing your rights is essential. You have the right not to be searched without a warrant. Also, you shouldn't consent for police to search your car. You should never allow this to happen. This would be like confessing.