yeah, for a decent firearm you will need rifling and a projectile that conforms to certain aerodynamic requirements.
I think the earliest is the Mine (fun aside, sounds like the Bulgarian word for handjob, and handjob balls I shall call them.)ball, which was at least Napoleonic era and I doubt...