Police said suspect vehicle collided with another that sent both off the road.
The firearm, a Ruger 9mm pistol, was recovered as well as the vehicle that still had the shell casing from the fired bullet inside.
Suspect, aged 22, from Hollister, was eventually arrested for driving under the influence of a controlled substance, possession of a controlled substance (heroin), and evading police in a vehicle.