In recent years, intelligent transportation systems, which provide safety and autonomous services on the road using the Internet and cellular technologies, have become increasingly important. Vehicles are equipped with sensors that can transmit data to other vehicles or infrastructure according to different types of services. In order to ensure robust connectivity for safety services, the transmission among vehicles requires low latency, high reliability, and high packet delivery ratio. With the increased number of vehicles, more frequency resources are needed to establish fast and reliable services. In the area of high vehicle density, the demand of frequency resources is increasing to establish stable connectivity in a short time. However, the amount of frequency resources is limited; the resource allocation scheme (RAS) should effectively assign a resource block to each user to ensure the quality of service. In this paper, we present a comprehensive survey of RASs for the 5G-based vehicular networks known as 5G V2X. We also discuss the challenges and opportunities for resource allocation in modern vehicular networks and present numerous promising future research directions.