A drug dealer was caught by chance after crashing his car into a traffic sign.
Searches of Connor McGurk's vehicle and home turned up ecstasy worth £15,000 and cocaine valued at £1600.
McGurk, 24, admitted being concerned in the supply of ecstasy and cocaine at his home in Cedar Drive, Viewpark, on September 7, 2020.
McGurk also admitted driving while unfit through drink or drugs that day.
Chloe O'Hara, prosecuting, told Hamilton Sheriff Court that a CCTV operator saw a car being driven erratically and hitting a traffic sign at 2am.
Police were alerted and officers observed McGurk pull into his driveway a short time later.
They approached and saw the pupils of his eyes were dilated and he appeared to be under the influence.
Bags of white powder and cash were recovered from the vehicle.
Ms O'Hara said: "McGurk was taken to Coatbridge police station. He said he was addicted to cocaine and 'punted' it to fund his habit.
"He said there were more drugs in his house and he knew he was caught."
As well as cocaine and ecstasy, officers seized £4229 in cash.
Defence agent John Paul Gallacher said he had no objection to that sum being confiscated.
Sheriff Thomas Millar called for a criminal justice social work report and an electronic tagging assessment.
Sentence was deferred until next month and McGurk, a first offender, had his bail continued.
The sheriff imposed an interim driving ban.
*Don't miss the latest headlines from around Lanarkshire. Sign up to our newsletters here.
And did you know Lanarkshire Live had its own app? Download yours for free here.