The earliest evidence of fire lances appeared in 950. They were created in China and they were used during the jin-song wars. The fire lance was constructed from a spear and bamboo tube with a fuse. to shoot the person should fill the tube with gunpowder and then fill it with stones. After all this, the person should scorch the fuse and the gun will shoot. Fire lance was the 1st firearm ever invented
Single barreled version-most common. By 焦玉 - 火龍經, Public Domain, https://commons.wikimedia.org/w/index.php?curid=53495339
Double-barreled automatic fire lance. By Yprpyqp - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=58238084