The shutter speed has to be around 1/30-1/60 for a good panning shot like these. You’d have to set the ISO and aperture until you can achieve that shutter speed. If you have IS on your lens, turn it off (unless expensive lenses with multi-settings for IS), turn on burst mode and start panning (following it) with the vehicle (object) and burst off shots.