Skip to content

Conversation

MohabCodeX
Copy link
Contributor

@MohabCodeX MohabCodeX commented Sep 10, 2025

Calling removePedFromVehicle() while a player is entering a vehicle left the client-server handshake incomplete, causing network desync, so i added handling to detect mid-enter states and send proper abort packets to clients to prevent the desync while maintaining backward compatibility.

Tested using the same script of #1519.

Copy link
Member

@FileEX FileEX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will network trouble also occur if, while exiting a vehicle, we use warpPedIntoVehicle on the same vehicle?

@MohabCodeX
Copy link
Contributor Author

@ArranTuna ArranTuna added sync bugfix Solution to a bug of any kind labels Sep 20, 2025
@FileEX FileEX merged commit 3ec9b5c into multitheftauto:master Sep 28, 2025
@FileEX FileEX added this to the 1.7.1 milestone Sep 28, 2025
MTABot pushed a commit that referenced this pull request Sep 28, 2025
3ec9b5c Fix network desync when `removePedFromVehicle` called during vehicle enter (#1519) (#4450)
@MohabCodeX MohabCodeX deleted the fix/vehicle-enter-cancel-desync branch October 3, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Solution to a bug of any kind sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants