Sec. 17-162. Unlawful use of weapons; exceptions. A. A person commits the offense of unlawful use of weapons if he or she knowingly: 1. Carries concealed upon or about his or her person a knife, a firearm, a blackjack or any other weapon readily capable of lethal use; or 2. Sets a spring gun; or 3. Discharges or shoots a firearm into a dwelling house, a railroad train, boat, aircraft, or motor vehicle as defined in section 302.010, RSMo, or any building or structure used for the assembling of people; or 4. Exhibits in the presence of one (1) or more persons, any weapon readily capable of lethal use in an angry or threatening manner; or 5. Possesses a firearm or projectile weapon while intoxicated; or 6. Discharges a firearm within one hundred yards of any occupied schoolhouse, courthouse, or church building; or 7. Discharges or shoots a firearm at a mark, at any object, or at random, on, along or across a public highway or discharges or shoots a firearm into any outbuilding; or 8. Carries a firearm or any other weapon readily capable of lethal use into any church or place where people have assembled for worship, or into any election precinct on any election day, or into any building owned or occupied by any agency of the federal government, state government, or political subdivision thereof; or 9. Discharges or shoots a firearm at or from a motor vehicle, as defined in section 301.010, RSMo, discharges or shoots a firearm at any person, or at any other motor vehicle, or at any building or habitable structure, unless the person was lawfully acting in self-defense; or 10. Carries a firearm, whether loaded or unloaded, or any other weapon readily capable of lethal use into any school, onto any school bus, or onto the premises of any function or activity sponsored or sanctioned by school officials or the district school board. B. Subsections A.1., A.3, A.4., A.6, A.7, A.8, A.9, and A.10 of this section shall not apply to or affect any of the following: 1. All state, county and municipal peace officers possessing the duty and power of arrest for violation of the general criminal laws of the state or for violation of ordinances of counties or municipalities of the state, whether such officers are within or outside their jurisdictions or off duty, or any person summoned by such officers to assist in making arrests or preserving the peace while actually engaged in assisting such officer; or 2. Wardens, superintendents and keepers of prisons, penitentiaries, jails and other institutions for the detention of persons accused or convicted of crime; or 3. Members of the armed forces or national guard while performing their official duty; or 4. Those persons vested by Mo. Const. Art. V with the judicial power of the state those persons vested by article III of the Constitution of the United States with the judicial power of the United States, the members of the federal judiciary; or 5. Any person whose bona fide duty is to execute process, civil or criminal or 6. Any federal probation officer; or 7. Any state probation or parole officer, including supervisors and members of the Board of Probation and Parole; or 8. Any corporate security advisor meeting the definition and fulfilling the requirements of the regulations established by the board of police commissioners under 84.340, RSMo; and 9. Any coroner, deputy coroner, medical examiner, or assistant medical examiner.