[Help] Vehicle Despawn

i have a problem that the vehicles on the server despawn for example when you are to far away from it.

i use Esx

i saw a lot of topics with that problem but i dont found a solution that worked for me.

2 Likes

tryed that but dont work.

https://runtime.fivem.net/doc/natives/#_0xAD738C3085FE7E11

where do i have to add this?

2 Likes

this one working in my city
StopDespawn.rar (2.2 KB)

ok i try that

2 Likes

it’s a script like the others
put the folder in your ressource and start it in cfg.

1 Like

lets me know if it works

ok the car stay when no body is near but when i disconnect all my cars despawn

Edit: and it’s not in my garage

Ive been battling this for some time now and still cant get it. Ive used SET_ENTITY_AS_MISSION_ENTITY veh ,true ,true and that works…kinda. i find using that native the cars will randomly despawn right in front of someone with multiple people on the server coming and going. The other native im current using and seem to work a little better is setvehplayerowned. This one seems to be a little more reliable but still not perfect. Thers also setnetworkid and SetNetworkIdCanMigrate. But even using these natives cars still randomly despawn on people just at a lower rate. This is the references i used and its about the only thing that kinda worked [SOLVED] Vehicle still despawn this is also a cool resource, but has its issue [SEMI-RELEASE] esx_jb_stopvehicledespawn this last resource is trying for persistent vehicles but vary glichie. Spawns multiples if theres more then one person around.

where do i edit the script vehiclestilldespawn?