In Scotland, certificates for BP guns (rifles and pistols) must be applied for before you may buy one. They are registered. You must have a safe to store them in. Your home is inspected annually.
They may also get certificates for rifles & shotguns, my friend has a Ruger 10-22 a 308 and 3 shotguns. You must have certificates for ammo too. Typically are allowed to buy up to 500 rounds of non-expanding ammo. Must have special permit for expanding ammo.
Odd thing is suppressors are recommended! And much cheaper than here. My friend bought a nice one for his 308 for under $400, and a 22 caliber can starts at $75.
No one may own a centerfire or rimfire pistol. Banned after a mass shooting many years ago.
There are also limits to the power of air guns, both pistol and rifle. Several of ours are illegal there.