Having a new issue, can’t determine why.
Issue:
- If you spawn a vehicle, get out, it will despawn. If you drive the vehicle a couple hundred yards, it’ll stay. Whether or not other players and their vehicles are visible is also hit or miss.
- AI also despawns. If you get within a block or two of AI traffic, they despawn. You can watch them despawn and respawn depending on the distance.
No major server changes when this broke. A car was duplicated (We have server side sirens. We’ll duplicate a cars files and rename it to allow the same car to have different sirens for different departments if wanted. We’ve done this many times with no issues). However, that vehicle was completely removed as we thought it might be the cause, but no luck.
Only other thought, between the time of working and then not working, two randoms inside the server were banned. Maybe they were able to screw with something in retaliation? We really have no clue.
Stand-alone Sever using VMenu
1 Like
Hello @RPsouthernjustice,
Although I don’t have a direct answer to your actual problem, this part caught my attention
I’ve never really been bothered with modifying vehicle sirens, but I’m almost certain there are better ways to achieve what you’re doing without having to duplicate files (which can certainly cause weird issues in the future if you’re not careful).
Why not just let a script handle the logic for the sirens? For example if vehicle model = X
or if different departments use the same vehicle but different texture, then just if vehicle texture = X
then activate the correct siren? 
I’ve been having this issue for the past few hours as well. I’ve been digging thru my code wondering what is going on. If you spawn a car and don’t put yourself into it immediately, it will despawn as well.
Edit: I forgot to mention, my client is on canary and server is on build 2372 with onesync infinity with artifact 5705.
Edit: After some more testing, I updated to server artifact 5711, still same issue, both peds and vehicles despawning within 100-200 unit radius of my ped.
I reverted back to artifact 5688, and peds/vehicles were fine, I then tested build 5704 and that worked fine as well. Then I went to build 5705 and it was broken.
It doesn’t matter what channel the client is on past build >= 5705 the peds and vehicles despawn around my ped.
1 Like
That fixed it!
We’re also on build 2372, reverted back to an old artifact and it now works. We’re using Zap Hosting, so I just set it to use FiveM’s recommended which is 5562 and it now works. Maybe they broke this game build in the newer artifacts.