I remember reading somewhere that the “Old West” actually had pretty strict gun control.
Iirc, the usual practice was to turn in your guns to the sheriff as soon as you got to town. You had to have a license or some official form stating you had the right to carry your gun with you, but it was still limited to basically just LEOs.