From 256dcb09aa6a21cb5a8665e8ff887d65da831060 Mon Sep 17 00:00:00 2001 From: Muhammad Hifzirrohman Syafi'i Date: Tue, 21 Jul 2020 06:42:49 +0700 Subject: [PATCH] Update main.lua (#93) Fix Free turbo and Xenon Glitch Co-authored-by: Yulian Ivanov <67766145+BrakingESX247@users.noreply.github.com> --- client/main.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/main.lua b/client/main.lua index 6d4af4b3..b9319cd2 100644 --- a/client/main.lua +++ b/client/main.lua @@ -43,6 +43,15 @@ RegisterNetEvent('esx_lscustom:cancelInstallMod') AddEventHandler('esx_lscustom:cancelInstallMod', function() local vehicle = GetVehiclePedIsIn(PlayerPedId(), false) ESX.Game.SetVehicleProperties(vehicle, myCar) + if not (myCar.modTurbo) then + ToggleVehicleMod(vehicle, 18, false) + end + if not (myCar.modXenon) then + ToggleVehicleMod(vehicle, 22, false) + end + if not (myCar.windowTint) then + SetVehicleWindowTint(vehicle, 0) + end end) function OpenLSMenu(elems, menuName, menuTitle, parent)