Well, I just updated my server to the latest artifact and a strange bug appeared. Many players report that their vehicles despawn when they get away from them. That itself ain’t bad cause I understand that improves performance. The problem is that they despawn
even if the player stays close
2)almost instantly, so the bug practically renders teleporters useless.
Anyone has any idea on how to increase the time it takes to despawn or remove the feature completely. Also, I should mention that along with the artifact I updated my vMenu so that may be the issue.
If no player is nearby, an entity gets deleted - this has always been the case except for a number of builds at some point where client-spawned script entities would be persistent, but that led to lots of issues where abuse scripts or badly-written spawn scripts would lead to persistent client crashes.
If you want a vehicle to remain persistent, spawn it on the server. A flag on the server to make a client-spawned vehicle persistent may be offered in the future, too.
I noticed on latest artifact with onesync infinity if a vehicle is spawned on the client it will persist even if the player gets out the the vehicle’s scope and nobody is around, but if the player leaves the server it will despawn. Is this intended behaviour?
I use the code below for spawning vehicles and they despawn never.
Even if the player leaves the server, the vehicle don’t despawn.
I think that there is no more than this possible when it comes to despawning vehicles.
How do you use onesync? I am now using in server.cfg
onesync_enabled true
But I have also tried + set onesync on in run_server.bat properties
I have also tried onesync legacy in server.cfg (With this they last a little longer)
But I think it’s a onesync problem, because mumble-voip also works badly for me, the voices mix when you get closer or further away. Everything’s wrong since I used the latest version of Artefactos 2949
the vehicle does not come out using your code, would you have a better example to share? because I have everything well set but the vehicle does not spawn