I know that would be legal in North Dakota. You would just have to have the gun unloaded. Of course the interesting thing is the legal definition of "unloaded" in the state law.
"Unloaded" means the chamber of the firearm does not contain a loaded shell. If the firearm is a revolver, then none of the chambers in the cylinder may contain a loaded shell. Handguns with a removable magazine or clip must have the magazine or clip removed from the firearm if the magazine or clip contains any loaded shells.
Want to drive with an AR-15 in the gun rack in North Dakota with a full magazine in it? Technically legal as long as the chamber is empty.
Farmers take advantage of this with regards to shooting nuisance animals.