An Inverkeithing man has been jailed for threatening ambulance staff who were trying to help his girlfriend after a suspected overdose.

Liam McGarvie, 20, of Spencerfield Road, admitted that on February 19 at nearby Fraser Avenue, he assaulted, obstructed or hindered two paramedics by shouting, making threats of violence, acting in an aggressive manner and attempting to enter the ambulance.

Depute fiscal Alisdair Shaw told Dunfermline Sheriff Court the ambulance was called out just after midnight after a report that a female had taken an overdose.

The paramedics arrived to find McGarvie in an “irate” state.

McGarvie told them "you better sort out my girlfriend or else" and that "the police had better not be coming or I’ll be kicking off".

Mr Shaw said: “The ambulance crew treated the female. The accused continued to be irate and she was taken into the ambulance.

“He then came over to the ambulance, was aggressive and attempted to enter it.

"He was refused entry. They closed and locked the door before contacting the police.”

The court heard unemployed McGarvie was already on a community payback order and “anxiety issues” had prevented from doing more than nine and half hours of the unpaid work.

Defence agent Brian Black said: “He has had time to reflect and it’s his intention to write a letter to the paramedics to apologise for his behaviour.”

Sheriff Charles MacNair told McGarvie: “This was an offence committed, while you were on bail, towards paramedics who were trying to treat your girlfriend.

“They are entitled to go about their business without interference and entitled to the protection of the court.”

He sent McGarvie back to detention to complete the remaining 26 days of a previous sentence.

He also imposed a consecutive term of 110 days for this latest offence.