[OneSync] Cars Dissapear

Client

Using canary? No
Windows version: Windows 10 Pro
System specifications: i7-4790k 4.7 OC, GTX 970, samsung 850 evo 250gb ssd.

Server

Operating system: Ubuntu 20.04
Artifact version: 3074
IP address: antisocial.indungi.ro
Resources: 147 (ESX + custom scripts)
System specifications: VDS, 100 GB SSD, Intel Xeon, 8 core, 16 GB RAM

Incident

Summary: I’ve made a script that sets vehicle as mission entity when the players exits the vehicle. When you go away from the vehicle it dissapears. When you disconnect the same thing happens. Since now I used 2935 artifacts and this didn’t happen, vehicle didn’t dissapear when going away from it and neighter when player disconnects.
Expected behavior: Vehicle not dissapearing.
Steps to reproduce: 1. Get into a car, exit the car, go away from it, come back. 2. Get into a car, exit the car, disconnect.

Any additional info: Since now I used 2935 artifacts and this didn’t happen. I created the script when I saw this post https://cookbook.fivem.net/2020/07/10/a-quick-note-about-onesync-server-side-persistence/ and used 2935 artifacts untill now. + with artifacts 3074 I have PL:3%.

I am facing somewhat the same issue with peds.

For example, creating a ped out of a specific range ( I believe the 300 units arround the player that are mentioned here) results in the entity to be deleted (tested it with DoesEntityExist in a loop while changing coords).

By adding a blip to the entity you can see just a for a bit that the entities are created and instantly deleted.

Though, entities that get created within the ‘scope’ are persistent.

I have tested it with 2967 build and It’s working fine, but using latest build (3270) or latest recommended (3184), entities in general seem to disappear.

This issue was resolved in 2689 if I understand what am I reading here.

[Edit] To my surprise, this is happening both on infinity and legacy mode. In legacy mode, the ‘scope’ that entities are created and don’t get deleted also is smaller.