altmp / altv-issues

Issues and roadmap for alt:V project
92 stars 17 forks source link

player.visible bug #2211

Open Lekenthu opened 5 months ago

Lekenthu commented 5 months ago

Description of the problem

If you use the server-side player.visible property, there are times when the change is not synchronized to the player next to you. On alt:V v15 I had no problems with this.

(The server config has enableSyncedMetaData enabled.)

Reproduction steps

player.visible = false;

Expected behaviour

-

Additional context

No response

Operating system

Windows 11

Version

16.0.28, branch release

Crashdump ID

No response

Confirmation of issue's presence

mrgharabaghi commented 5 months ago

player.visible doesn't work correctly for me too.

Reproduction steps:

  1. Connect and spawn the player A.
    // Server
    alt.on('playerConnect', (player) => {
    player.visible = false;
    player.spawn(1, 2, 3, 0);
    });
  2. After loading the map with alt.Utils.loadMapArea, I send a request from client to server.
    
    // Server
    alt.onClient('map_loaded_for_player', (player) => {
    player.visible = true;
    });

3. Player B connects and spawns with the above steps.
4. Player B doesn't appear for Player A.

![a](https://github.com/altmp/altv-issues/assets/40915667/2f372b86-3776-45cc-906e-960766795684)
![b](https://github.com/altmp/altv-issues/assets/40915667/3bf4b57c-61db-4ed5-bed0-d3303f1a29e3)
xxshady commented 4 months ago

Seems like it also happens with vehicles (probably with all entities? peds, objects)

Lekenthu commented 4 months ago

Seems like it also happens with vehicles (probably with all entities? peds, objects)

I only noticed it in players.

xxshady commented 4 months ago

https://github.com/altmp/altv-issues/assets/54737754/49d0624b-e610-4e82-bbf3-5ac9922d9b78

dGxxxx commented 2 months ago

can confirm.