The first sentence is best. The second one is okay, but it could be interpreted as having a picnic in a car. The third one would mean that they had a picnic in or by (close to) a car.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.