Skip to content

Commit

Permalink
Update vehicle mod-loading (wheels) (#35)
Browse files Browse the repository at this point in the history
* Update index.ts

Added Front/Back Wheels to mod loading

* Update src/main/server/vehicle/index.ts

Co-authored-by: Stuyk <[email protected]>

---------

Co-authored-by: Stuyk <[email protected]>
  • Loading branch information
Booster1212 and Stuyk authored Jun 7, 2024
1 parent 9c164d6 commit d6f31ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/server/vehicle/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ export function useVehicle(vehicle: alt.Vehicle) {
for (let key of Object.keys(document.mods)) {
const id = parseInt(key);
try {
if(id === 23 || id === 24) {
vehicle.setWheels(id, document.mods[key]);
continue;
}

vehicle.setMod(id, document.mods[key]);
vehicle.setMod(id, document.mods[key]);
} catch (err) {}
}
Expand Down

0 comments on commit d6f31ae

Please sign in to comment.