General advice: Get and install a dash cam and have it it running whenever you’re driving...Immediate advice: Stop and DO NOT leave the car....keep your foot on the gas pedal..keep the windows closed...check your 360....if it looks like a set up, floor it to the nearest police station....
But bullets move at at least 800 ft per second and a car offers no protection from same, so I’d advise calling 911 while you drive away.