Skip to content

Fix #3827: Vehicles passing through frozen objects - #5471

Open
iManGaaX wants to merge 2 commits into
multitheftauto:masterfrom
iManGaaX:fix/issue-3827
Open

iManGaaX wants to merge 2 commits into
multitheftauto:masterfrom
iManGaaX:fix/issue-3827

Conversation

@iManGaaX

Copy link
Copy Markdown
Contributor

Summary

The frozen state set bDisableCollisionForce but not bCollidable, so vehicles ignored frozen objects entirely; apply the same flag combination GTA uses for immovable objects and restore it on unfreeze

Closes #3827.

Example:

local x, y, z = getElementPosition(localPlayer)
local o = createObject(1491, x + 3, y + 3, z - 1)
setElementFrozen(o, true)

Before ->

2026-09-26.02-27-58.mp4

After ->

2026-09-26.02-26-05.mp4

Checklist

  • Your code should follow the coding guidelines.
  • Smaller pull requests are easier to review. If your pull request is beefy, your pull request should be reviewable commit-by-commit.

@FileEX FileEX added the bugfix Solution to a bug of any kind label Sep 30, 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.

Frozen dynamic door object

2 participants