Open Lekenthu opened 5 months ago
player.visible
doesn't work correctly for me too.
Reproduction steps:
// Server
alt.on('playerConnect', (player) => {
player.visible = false;
player.spawn(1, 2, 3, 0);
});
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)
Seems like it also happens with vehicles (probably with all entities? peds, objects)
Seems like it also happens with vehicles (probably with all entities? peds, objects)
I only noticed it in players.
can confirm.
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