[Request] prevent cars from spawning

Is there anyway to prevent sports cars from spawning on the server am getting annoyed every person is able to find a sports car that easily on the street. :slightly_frowning_face:

I don’t have the all knowledge you needed. Btw, if you really need to do that, I recommand you to check all the time, anywhere around the player (with RayCast) if there is any vehicles with the class Sport. If so, delete it.
I will not beg this is not the proper way, I also will not recommand you to prevent cars from spawning atm

I don’t know man its really annoying ever since the last few fivem update I been seeing more sports cars driving around I don’t know if am going crazy that’s just me or maybe is one of my scripts causing that I don’t know.

You can also prevent ppl driving a sport car with a small script

Replace popgroups.ymt using a data_file: https://wiki.fivem.net/wiki/Data_files#fivem_loves_you_435adcf0970f57ed

1 Like

You could always lock all NPC cars from being able to be stolen?

[ gta-streaming-five ]: Could not add data_file resources:/popgroups/popgroups.ymt - invalid type fivem_loves_you_435adcf0970f57ed.

could you help me please ? :dizzy_face: