MODESTO (CBS13) – A man accused of showing up to court under the influence is under arrest, and what got him arrested is the same thing that brought him to court in the first place.

And by all accounts he tried to get to court, but instead, deputies would walk him to the Stanislaus County Jail.

READ MORE: 'I Don't Think That's Fair': Allora Co-Owner Says Staff Was Bumped Down Vaccine List

“He did make an effort to show up to the courthouse to attend his court hearing,” said Dep. Raj Singh, Stanislaus County Sheriff’s Department.

Ryan Nunes was arrested for DUI on the way to a court hearing for the same kind of charge.

But that effort wouldn’t go too far. Ryan Nunes would be stopped at the Stanislaus County Court security checkpoint, not for a loaded weapon, but rather just being loaded.

“The deputies noticed he was under the influence,” said Singh.

Nunes had a date with a judge he didn’t want to miss but he allegedly was in no shape to stand up to the charge against him. Apparently he could barely stand at all.

“He wasn’t able to walk and his speech was very slurred,” said Singh.

That charge he was there to answer to was public intoxication.

After arguing with deputies, they say they instructed Nunes to reschedule his court date and sober up, but after being tossed out, they say he sat on the court steps to see a judge.

READ MORE: 'My Nephew Died A Hero': Family Honors Man From Sacramento Mistakenly Shot And Killed By Idaho Police

“He was asked several times to leave. He refused to do so,” said Singh.

So, he was arrested and walked a single block to the county jail with another charge of public intoxication.

“It’s pretty funny, and it’s sad too,” said one Modesto resident.

It has people in Modesto shaking their heads.

“It’s ridiculous. What do you do with a guy like that?” asked another resident.

He wanted to see a judge and instead he is faced with a sober reality, sobriety in jail.

“Most of the time people don’t show up drunk. So this was an unusual case for us,” said Singh.

Nunes now also faces a charge for failing to appear to that court date. He’s scheduled to be back in court in the coming weeks.

MORE NEWS: 3-Car Crash Forces I-80 Lane Closures, CHP Says

According to court records, Nunes has numerous other alcohol related charges.