In most European countries you have to store the firearm in a locked safe, often with the bolt removed or the weapon disassembled and - quite often - with the ammunition stored separately in another locked container/safe.
It’s a lot more “steps to take” to commit suicide than “take the weapon from your nightstand and shoot yourself”, given you have to unlock usually more than one safe/lockbox.