You should have hid your pot and pipe in your center console. If you would have been able to present yourself decently nothing should have happened to you. Next time dont let cops search you.