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.
It might be species specific.