A student caused more than €2,000 of damage to a taxi when he jumped all over it in a "moment of madness" after drinking on a night out.
Jack Doyle (21) had also been taking medication and did not remember shattering the car's windscreen.
Judge Timothy Lucey adjourned the case after saying he would leave Doyle without a criminal record if he pays full compensation to the driver.
Doyle, of River View, Virginia, Co Cavan, pleaded guilty to causing criminal damage to the taxi.
Dublin District Court heard that the incident happened on Harcourt Street, Dublin, at 3.50am last September 21.
The driver was sitting in his taxi and was available for hire when the defendant app- roached. Doyle jumped on the bonnet, the windscreen and the roof of the car, causing considerable damage.
He was apprehended shortly afterwards by security staff at a nearby nightclub and gardai were called. He was acting in a very aggressive and agitated way when they arrived and it was clear he was intoxicated, the court heard.
He remained aggressive in the patrol car while he was taken to Pearse Street Garda Station, but then calmed down and apologised.
The total cost of the damage was €2,083. Doyle had no previous convictions.
Alcohol was a "significant factor" in what happened, the defendant's barrister said.
The accused had recently finished studying business studies and a course in personal training, his barrister said. He did not remember the incident but accepted the garda evidence.
The accused was active in the community and what happened had been a "wake-up call" for him. Doyle was extremely apologetic and embarrassed to be before the court. He had family in Australia and hoped to travel.
He also had ambitions to join the gardai.
His lawyer asked Judge Lucey not to let the defendant's future career be affected by what happened.
"A mixture of alcohol and medication led him to act in a way which was extremely out of character," the lawyer said.
Judge Lucey said he would strike the case out if the compensation is paid by September.