Spoilers don't have an effect on your car's top speed in GTA V. However, they do adjust how much downforce is generated and will change your car's centre of mass. This will in turn allow you to potentially take corners at higher speeds, which can result in faster lap times.