When police stopped Bushey man Daniel McCarthy in his car in Watford they found he had on him cocaine, amphetamines and a knuckle duster.
The 27-year-old from Farrington Avenue appeared at St Albans Crown Court on January 29.
He pleaded guilty to passing cocaine, possessing amphetamine and having an offensive weapon.
Prosecutor Archie MacKay told the court it was on October 14 last year when McCarthy was stopped in his silver BMW by police in Hempstead Road, Watford.
On him officers found cocaine and amphetamines, and in a bag in the passenger footwell of the car officers found the knuckle duster.
The court was told that initially McCarthy claimed he was going to use the metal knuckle duster as a paper weight, although he had subsequently admitted the offence.
He was sentenced to 22 weeks imprisonment suspended for 18 months and will have to complete a 20-day rehabilitation activity requirement.
He was also told he would be subject to a six-week home curfew between the hours of 9pm and 6am.