This document evaluates latency in 5G vehicle-to-everything (V2X) communications using an adaptive neuro-fuzzy inference system (ANFIS) model. It proposes using ANFIS to control beacon packet transmission between vehicles, infrastructure and the network to improve handover and beamforming latency. The performance of ANFIS is compared to traditional 5G V2X architecture in simulations considering delays, throughputs, packet losses and other metrics for different traffic types. Results show ANFIS significantly outperforms the traditional approach, reducing delays by 66% for device-to-device traffic and packet losses by 90% for voice calls.