Better AI population spawning control

Oh yea I agree with the pulling over thing. Working on a fix now. I misunderstood I thought you meant the cars in dif places that ruined it.

No I like the fact that you see different cars then what is usually spawned without this.

Updated to fix them not pulling over and spawning in the centre of the lanes, just done a quick test but I have to go out. Seems good so far

2 Likes

Nice script ! This is a great idea and a great project !

I tested the script with the latest version and with 10 players and I have some problems to transmit:

  1. There is an client error followed by a client crash (MainThrd/ ^1SCRIPT ERROR: @SRambientai/client.lua:587: bad argument #1 to ‘remove’ (position out of bounds)^7)
  2. We have no vehicles parked on the roadside (without the script, all is fine).
  3. I quickly reach (10 mins) the maximum number of vehicles and the number of vehicles remains at the maximum
  4. Even by changing the parameters, it is impossible for me to have a realistic density of vehicles

I hope that this message will help in the development of the script, I will test each version in order to be able to help.

1 Like

thanks for the awesome feedback. il be working on it when im home in an hour or so. line 587 should not be there i left it in by mistake. ive got a few ideas to fix the other stuff too.

1 Like

Updated to hopefully fix problems noted.
@SnowInHD @Pierre_arma

3 Likes

Just put out another big update, Ive done a lot of testing on this with up to 10 players and its been going very well.

2 Likes

i tried to use this and getting lots of problem. like AI in the middle of the street + abandon.

If you mean AI stood in the street that’s because I missed a t, lol. its all good now.

1 Like

gonna try it and give feedbacks

I notice a MAJOR issue. The script is causing people to crash with item-florida-uranus (gta-net-five.dll+40D0C). The moment I turn it off, no one crashes with it. Plus like Mac_Gaming said, on the latest update of this, AI still like to have pill ups, abandon cars or AI still in the street

oh yea this one too causes crash

Well its a strait copy and paste of what’s running on my server fine.

When i disable your script. we don’t experience this kind of crash

Well you the first to have anything like that happen. so what can I say. are you changing any of the config options?

it could be one of the cars, I did pick a random list and if there is a bugged one on your server that could cause a crash.

I don’t have any vehicle replacements soo it shouldn’t be a issue but I get that crash error like Mac_Gaming plus I can’t find any info on the crash code, normally if it’s a vehicle causing it, it would show more info on it plus I didn’t change anything in the config either

i didnt change anything just run your script from github

u guys using esx or vrp?

yup esx