Vehicular ad hoc networks (VANETs) are self-organizing, open-structure inter-vehicle communication networks, along with wireless communication technology and transportation. Vehicle communication aims to improve the driver's response-ability and ensure traffic safety when encountering traffic accidents. The 5G NR on V2V communication, compared to fourth-generation (4G) long-term evolution (LTE), is more sophisticated and has ultra-high reliability. This research proposes intelligent driver model-lane changes (IDM-LC) and driver model-avoidance (IDM-A) models, which enhance the performance accuracy of the V2V communication through the 5G NR system. In this case, the authenticity of the vehicle movement models is tested on different road scenarios, i.e., square, hexagon, heptagon and triangle. In these scenarios, the vehicles' movements over the 5G networks receive widespread coverage whenever the vehicles receive signals from the roadside unit (RSU). Hence, the flexibility of VANET is used to improve the device-to-device (D2D) or vehicle-to-vehicle (V2V) communication efficiency in the fifth-generation (5G) new radio (NR) system. In addition, the VANET simulation platform, i.e., simulation of urban mobility (SUMO) and network simulator-3 (NS-3), simulate and evaluate the comparison of V2V through the 5G networks, which receives widespread coverage in 15 to 20 m/s. The simulation results and analysis show that the V2V communication through the 5G system performs better on the IDM models.INDEX TERMS Vehicular ad hoc network, fifth generation, vehicle-to-vehicle, internet of vehicles, intelligent driver model, SUMO, NS-3