Lord Cubie sentenced him to six years and nine months.
This will only start after the end of another jail term previously imposed for drug trafficking.
On June 5 2024, Hughes was separately involved in a £15,000 heroin handover with a Liverpudlian man in Clydebank.
A total of almost £20,000 was also found in this man’s van.
Graeme Brown, defending, said the gun crime was “a continuation and escalation” to his previous involvement in drug trafficking.
Hughes was also given a three-year Serious Crime Prevention Order – known as a super-Asbo – designed to monitor and restrict criminals on their release from jail.
Philip Marshall, regional head of investigations at the National Crime Agency, said: “The criminal use of firearms in Scotland relies on people like Hughes who sell guns to the highest bidder without any consideration for the risks involved or the threat to the public.
“The NCA will continue to work with our Police Scotland partners to stop career criminals like Hughes who bring such danger to our communities.”