Skip to content

Fix #664: Prevent vehicle doors freezing after passenger exits - #5247

Draft
MohabCodeX wants to merge 1 commit into
multitheftauto:masterfrom
MohabCodeX:fix/issue-664-passenger-door-freeze
Draft

Fix #664: Prevent vehicle doors freezing after passenger exits#5247
MohabCodeX wants to merge 1 commit into
multitheftauto:masterfrom
MohabCodeX:fix/issue-664-passenger-door-freeze

Conversation

@MohabCodeX

Copy link
Copy Markdown
Contributor

Fixes #664

This problem has existed for years:

  • Vehicle doors freezing in mid-air after a passenger exits while driving.
  • Swinging doors never auto-latching shut when pushed closed by vehicle motion.
  • Doors remaining unlatched and flapping after an occupant enters.

All are now fixed.

2026-08-20.03-28-26.2.mp4

@MohabCodeX

Copy link
Copy Markdown
Contributor Author

Caught another bug:

When a player tries to jack a car from the driver’s door and fails because the driver drives away, the door gets frozen. I’m fixing it now.

@MohabCodeX
MohabCodeX marked this pull request as draft August 20, 2026 03:15
@efejotaese2

Copy link
Copy Markdown
Contributor

Could this interfere with setVehicleDoorState?

For example, if a script sets a closed door to state 1 or 3 while swinging doors are enabled, wouldn't this turn it back into 0/2 on the next pulse since the ratio is already <= 0.01?

Not sure if I'm missing something here :p

@FileEX FileEX added the bugfix Solution to a bug of any kind label Aug 21, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Doors freeze after any player exit passenger seat

3 participants