Presumably it varies from one place to the next, but as an example, it was illegal to discharge a firearm in Austin, TX but not in the unincorporated parts of Travis County. When my friend moved to the area, at first he was sharing a house outside the city limits. The next-door neighbor (however close or far that may have been) would come over to the property boundary and just fire his shotgun into the air, because he could. I don’t know if the guy was a 4-door asshole in the first place, or there was some real or perceived offense that made him do this, but he would fire the gun when he knew they were home. When they called the county sheriff to complain, they said they really couldn’t do anything since he wasn’t shooting at them or onto their property. Aside from the difference in firearm restrictions, I guess the county didn’t have nuisance laws that the city would have had. (Eventually my friend moved into town.)
EDIT for typos etc.