Controls on firearms in the European Union would be tightened under legislation approved by the European Parliament on Tuesday.
The new rules would require member states to check whether deactivated weapons have been rendered permanently unusable. Such weapons are used legally on film sets or in theatre productions. The deactivated weapons must also be registered.
The directive also applies stricter controls to firearms designed to fire blanks. These weapons can be converted to fire live ammunition, as was the case in the terrorist attacks on the offices of satirical magazine Charlie Hebdo in January 2015.
The new rules also toughen regulations on semi-automatic weapons with larger magazines.
Some members of the legislature feared that the interests of hunters and shooting sports enthusiasts have not been adequately taken into consideration.
But rapporteur Vicky Ford said the directive would make an important contribution to security while respecting the rights of legal gun owners.
EU member states still have to agree to the changes.