Notwithstanding any other provision of any law or any rule or regulation of a State or any political subdivision thereof, any person who is not otherwise prohibited by this chapter from transporting, shipping, or receiving a firearm shall be entitled to transport a firearm for any lawful purpose from any place where he may lawfully possess and carry such firearm to any other place where he may lawfully possess and carry such firearm if, during such transportation the firearm is unloaded, and neither the firearm nor any ammunition being transported is readily accessible or is directly accessible from the passenger compartment of such transporting vehicle: Provided, That in the case of a vehicle without a compartment separate from the driver’s compartment the firearm or ammunition shall be contained in a locked container other than the glove compartment or console.
18 U.S. Code § 926A. Interstate transportation of firearms
A prior section 926A, added Pub. L. 99–308, § 107(a), May 19, 1986, 100 Stat. 460, provided that any person not prohibited by this chapter from transporting, shipping, or receiving a firearm be entitled to transport an unloaded, not readily accessible firearm in interstate commerce notwithstanding any provision of any legislation enacted, or rule or regulation prescribed by any State or political subdivision thereof, prior to repeal by Pub. L. 99–360, § 1(a).