A gunman fired a shot into a busy city centre street then put his balaclava on the wrong way.
Lachlan McNair was caught with the imitation firearm outside Glasgow Central train station on October 20, 2021.
The 39-year-old earlier pulled the trigger into the city centre’s four corners before fleeing the scene.
He was discovered after he sorted out his balaclava which was initially put on back to front.
On Thursday, McNair pled guilty at Glasgow Sheriff Court to possession of a firearm or imitation firearm with intent to cause John Snoddy to believe lawful violence would be used against another person
The court heard McNair was on Argyle Street around 9pm and was spotted with an “object” by Mr Snoddy.
Prosecutor Laura Bradley said: “McNair was seen pointing the gun at the four corners followed by a small bang.”
McNair put the gun in his pocket before going into the train station where he “pulled down a balaclava.”
Ms Bradley added: “It was initially backwards on McNair’s head.
“He adjusted it and revealed his eyes and mouth only.”
The witness followed McNair up to the high level of the station before he headed out to Hope Street.
Police attended and traced McNair to a convenience store nearby where he was searched.
Ms Bradley said: “A black BB gun with a blue slot was found in the inside of his jacket pocket.
“The balaclava was also found inside his jacket pocket.”
He was cautioned and charged then told officers: “It’s only an air gun.”
Gerry O’Donnell, defending, will make his plea in mitigation at next month’s sentencing.
Sheriff Sean Murphy told McNair: “You were out of trouble for a great number of years, I will call for background reports.”
McNair, who appeared from custody, had his remand continued in the meantime.