Skip to content

Fix the component list doesn't change after replacing the model#4689

Open
FileEX wants to merge 1 commit intomultitheftauto:masterfrom
FileEX:bugfix/vehicle_components_after_replacement
Open

Fix the component list doesn't change after replacing the model#4689
FileEX wants to merge 1 commit intomultitheftauto:masterfrom
FileEX:bugfix/vehicle_components_after_replacement

Conversation

@FileEX
Copy link
Member

@FileEX FileEX commented Feb 3, 2026

Summary

Even though vehicles are restreamed after a model replacement, the component list is not cleared. As a result, an existing vehicle (CClientVehicle) retains an incorrect component list even after the restream.

Motivation

#4130

Test plan

  1. Create a vehicle next to you.
  2. Replace the vehicle model with one that has a hidden component.
  3. Check the vehicle’s component list (for example, using the /gvc command from the getVehicleComponents function example).
  4. Notice that the list looks incorrect.

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 requested a review from a team as a code owner February 3, 2026 21:49
@FileEX FileEX linked an issue Feb 3, 2026 that may be closed by this pull request
1 task
@FileEX FileEX added the bugfix Solution to a bug of any kind label Feb 3, 2026
@FileEX FileEX linked an issue Feb 7, 2026 that may be closed by this pull request
1 task
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.

The component list doesn't change after replacing the model. resetVehicleComponentPosition has issues with modded vehicles

1 participant