Skip to content

Fix client spoiler upgrade placement on unsupported vehicle models#4824

Merged
Lpsd merged 1 commit intomultitheftauto:masterfrom
Lpsd:fix-upgrades
Apr 19, 2026
Merged

Fix client spoiler upgrade placement on unsupported vehicle models#4824
Lpsd merged 1 commit intomultitheftauto:masterfrom
Lpsd:fix-upgrades

Conversation

@Lpsd
Copy link
Copy Markdown
Member

@Lpsd Lpsd commented Apr 19, 2026

Prevent slot-2 spoiler upgrades from being applied when the vehicle model lacks ug_spoiler support. This avoids SA fallback frame substitution that places spoilers inside the cabin or at incorrect offsets. Applied the check in ForceAddUpgrade before calling AddVehicleUpgrade. Tested with a resource: supported models still get spoilers (e.g via autopimp in race); unsupported models no longer get mispositioned spoilers.

Prevent slot-2 spoiler upgrades from being applied when the vehicle model lacks ug_spoiler support. This avoids SA fallback frame substitution that places spoilers inside the cabin or at incorrect offsets. Applied the check in ForceAddUpgrade before calling AddVehicleUpgrade. Tested with vehicle-upgrade-test spoilertest: supported models still get spoilers; unsupported models no longer get mispositioned spoilers.
@Lpsd Lpsd merged commit 491bddb into multitheftauto:master Apr 19, 2026
9 checks passed
@FileEX FileEX added this to the 1.7 (Current) milestone Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants