First Opium War
It is estimated that 30 to 40% of Chinese soldiers at the time of the First Opium War were equipped with firearms, typically matchlock muskets.