A MAN with a "horrendous record" threatened a resident and tried to headbutt cops after being caught in an underground carpark.

Glasgow Sheriff Court heard John Duncan removed his jacket and challenged a resident to a fight when he was spotted in a locked carpark.

When police were called, the 39-year-old became aggressive and began kicking off.

Around 7.30pm on Saturday, May 23, a resident was checking on his motor vehicle in the underground car park on Holm Street in Glasgow city centre.

Depute fiscal Tanjeel Maleque told the court: "He observed the lights to be on in the car park, which signifies someone is present.

"He saw the accused there and the witness challenged him as to who he was and why he was there."

An argument started and Duncan removed his jacket and challenged the witness to a fight.

The man left the car park and contacted the police.

Officers attended at the car park, identified the accused and approached him indicating they wished to speak to him.

He became aggressive and stated "Take these off or I'll stick the nut in."

He was told to calm down but continued to issue threats.

The accused then lunged towards police officers, attempting to headbutt one police officer before falling to the ground.

Duncan was brought to his feet and again lunged and attempted to headbutt him.

The accused was then arrested and continued to shout and swear, "You f****** scumbags, you're getting g****** done in after this."

He was placed in a police motor and stated to officers when asked what he was doing there that he was homeless.

Duncan, of Annandale Street in Govanhill, had an abrasion to his head so was taken to Glasgow Royal Infirmary but no treatment was required and he was released.

His defence lawyer said: "For what it's worth, his plea [of guilty] was tendered at the first opportunity."

But Sheriff Patricia Pryce corrected the brief and said the plea was given at trial.

Duncan had brought to court from custody as he is currently serving a sentence for other matters.

Sheriff Pryce said: "I would be well within my rights to give you another cutive sentence.

"You just can't stay out of trouble.

"You have got a horrendous record for similar offences."

The sheriff handed him a 180 day sentence.