Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Fix Wheel Loading. (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Booster1212 committed Aug 12, 2023
1 parent 6c506bf commit 41bbc82
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/server/vehicle/tuning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ export function applyTuning(vehicle: alt.Vehicle, tuning: VehicleTuning | Partia

if (tuning.mods) {
for (let mod of tuning.mods) {
vehicle.setMod(mod.id, mod.value);
if (mod.id === 23 && mod.value !== 0) {
vehicle.setWheels(23, mod.value);
} else if (mod.id === 24 && mod.value !== 0) {
vehicle.setWheels(24, mod.value);
} else {
vehicle.setMod(mod.id, mod.value);
}
}
}
}
Expand Down

0 comments on commit 41bbc82

Please sign in to comment.