A Dublin man damaged two parked hire cars in "mindless acts" that he could not explain, a court has heard.
Anthony Foley (43) was in a "very bad place" when he carried out the offences, in two separate incidents.
Judge Dermot Simms adjourned the case for a pre-sentence probation report.
Foley, of McCarthy's Terrace, James's Walk, in Dublin's south inner city, pleaded guilty to causing criminal damage.
Gda Ian Foley told Dublin District Court the first incident happened at Grand Canal Place on February 19 last year when a Europcar vehicle was damaged.
In the second, on June 20 last year at Kilmainham Lane, a Skoda Octavia belonging to Hertz was damaged.
Foley was identified on CCTV. He was going through a "difficult period" at the time, said his solicitor, Richard Young.
"It was a mindless act that arose out of where he found himself in that particular period," he said.
Foley came from a "very difficult background".
The court heard the value of damage caused in one case was €183 and the other was in "the same ball park".