A dealer who told police “it’s all mine bruv” when a bag of drugs was found in car full of people has been locked up.