Combat Rules

Firearms

Source
DMG

Firearms are an optional category of weapons — such as pistols and muskets — available at the DM's discretion, typically in campaigns with a more advanced level of technology.

Firearms use their own ammunition (bullets) and are otherwise treated like other ranged weapons for the purposes of proficiency, range, and the Attack action.