From a5766b7d5b99eb24108fa5442b105e1b19461864 Mon Sep 17 00:00:00 2001 From: Der Lord! <82890183+Booster1212@users.noreply.github.com> Date: Fri, 7 Jun 2024 20:26:10 +0200 Subject: [PATCH] Update index.ts (#37) Add Rear Wheels as well apply front wheels properly --- src/main/server/vehicle/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/server/vehicle/index.ts b/src/main/server/vehicle/index.ts index 1a3f29ac3..9247435f4 100644 --- a/src/main/server/vehicle/index.ts +++ b/src/main/server/vehicle/index.ts @@ -39,8 +39,13 @@ 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]); + if(id === 23) { + vehicle.setWheels(23, document.mods[key]); + continue; + } + + if(id === 24) { + vehicle.setRearWheels(document.mods[key]); continue; }