A teenager was found with an illegal firearm when police carried out a search of a car, Lincoln Crown Court was told on Friday.
Officers went to investigate when they spotted the vehicle parked at night on Cold Harbour Lane, Grantham, facing towards an open field.
Lisa Hardy, prosecuting, said that five men were seen next to the car and when officers approached they smelled cannabis.
Miss Hardy said the vehicle was searched and a stun gun disguised as a torch was found along with a CS gas canister.
The front seat passenger Adrians Ceirulis immediately confessed that he was the owner of the both items and he was arrested.
Miss Hardy said: “The stun gun is a prohibited weapon. In interview the defendant stated that both items were his and admitted he had brought the stun gun over from Latvia in his luggage.”
Ceirulis, 19, of Dudley Road, Grantham, admitted charges of possession of a disguised firearm and possession of a prohibited weapon as a result of the incident on October 12, 2016.
He was sent to a young offenders’ institution for 18 months.
His sentence is to run consecutively to a four-year, eight-month sentence he received in December 2016 for an unconnected sexual offence.
Mark Watson, in mitigation, said that Ceirulis had bought the stun gun legally in Latvia and did not realise that the law is different in the UK.
Mr Watson said: “It wasn’t very good. The only time he had tried to use it was on himself. That demonstrated to him that it wasn’t very powerful.”
He said the CS gas canister was found by Ceirulis.