In fact it’s illegal to shoot out of you car, police can’t even do it.
When I lived in Ca it was legal.
I do not recommend it, I am only saying it was legal.
There are several issues.
If you’re being bounced about, you can’t really have control of the weapon.
If the vehicle is still you’re gonna get a pressure wave in the cab that will blow your ears out.