You can't buy or hire a gun in the UK until you are 18 years old.
In most cases you need a special licence (or in Northern Ireland a certificate) to have possession of a gun.