NetworkConcealEntity Bug

During my tests with entity concealings, I noticed there is a bug…

For this post, whenever I say setting a vehicle entity to an instance, I actually mean applying NetworkConcealEntity with the correct parameters for the vehicle entity from each player:

When you set a vehicle entity to an instance, the vehicle won’t appear to the players in the instance, unless the owner of the entity is also inside the instance. Once the owner of the entity joins the instance, the vehicle appears to all players inside the instance…
Also, once the vehicle entity owner leaves the instance, the vehicle disappears from players in the instance until the owner joins back in…

P.S. For a more accurate description, the vehicle entity which is set to an instance, will appear for 1 second to all players who are already in the same instance as the vehicle, and then it disappears until the owner of the vehicle joins the instance.

1. Client (production/canary) and FXServer version: canary | FXServer-master SERVER v1.0.0.6231

2. What you expected to happen: The vehicle entities that are instanced should be shown to the players of the instance even if the entity owner is not present in the instance.

3. What actually happens: The instanced vehicle entities are not shown to the players that are in the same instance as the vehicle unless their entity owner is present in the same instance.

4. Category of bug (eg. client, server, weapons, peds, native): client/native

5. Reproducible steps, preferably with example script(s)
Using my in-development resource and its commands for testing
Repro (1) Steps:

  • Have player 1 spawn a vehicle
  • Set the vehicle to an instance
  • Have player 2 join the instance
  • Player 2 cannot see the vehicle until player 1 joins the instance
  • Player 2 cannot see the vehicle after player 1 leaves the instance

Repro (2) Steps:

  • Have player 1 spawn a vehicle
  • Have player 2 join an instance
  • Set the vehicle to the instance
  • Player 2 sees the vehicle for 1 second, then the vehicle disappears until player 1 joins the instance
  • Player 2 cannot see the vehicle after player 1 leaves the instance

Would it be possible to make a smaller repro and state description than your full script? There’s a lot going on in this description and a lot of states to try to figure out.

Sure, I’ll try to come up with a better and smaller repro.

Here is a simpler repro with a showcase of the issue:

The repository that was used in the reproduction of this issue is here.
If you cannot see the uploaded video for whatever reason, I’ve uploaded it to the repository I provided above as well.

Basically, the bug here is if a vehicle entity is concealed for its owner, other players who do not have the vehicle concealed, cannot see the entity as well.

@d-bubble Do you have any update on this? Or at least a temporary workaround?