Mohammed Hanif, aged 44 of Gammons Lane was first stopped by police on March 18 last year for driving with no MOT.
Officers then saw a bag a white powder in his car which turned out to be half a gram of cocaine.
Hanif, 44, was taken to the police station where he was strip-searched. In his underwear, there were 10 more bags of cocaine.
The cocaine weighed a total of 5.46 grams and had a street value of between £220 and £330. Hanif had £490 cash on him.
Hanif pleaded guilty to possessing Class A drugs with intent to supply and possessing criminal property.
He was sentenced to a 20-month jail sentence suspended for 18 months and ordered to carry out 120 hours’ unpaid work and 15 days rehabilitation.
When interviewed, Hanif told the police he had got into the wrong company.
He said he had been delivering drugs for four to five weeks and was being paid £100 a day.
He said he had lost his job of 25 years and was very short of money.
Defending, David Burgess said Hanif’s father had died in the weeks before his arrest.
He said he had pleaded guilty at the first opportunity.
He said he was of previous good character and had not been in trouble since.
Mr Burgess said he was now working as a delivery driver and is a “very different man from a year ago.”
Recorder Lee Harris passed a 20-month jail sentence suspended for 18 months and ordered him to carry out 120 hours’ unpaid work and 15 days rehabilitation. The £490 is to be forfeited and the drugs and Hanif’s phone destroyed.
The judge told him: “You have come very close to receiving an immediate prison term.”