Beacons for communication of cars

Firstly tell me can beacon be used to communicate b/w two cars? E.g beacons installed in one car and the other car passing by detect it .Also tell me will it work in case of fog… Because i 've to do this work in foggy weather. Kindly help me asap because i am doing my project on this.