Update main.lua (#93)

Fix Free turbo and Xenon Glitch


Co-authored-by: Yulian Ivanov <67766145+BrakingESX247@users.noreply.github.com>
This commit is contained in:
Muhammad Hifzirrohman Syafi'i
2020-07-21 06:42:49 +07:00
committed by GitHub
parent 4d7dc79eae
commit 256dcb09aa
+9
View File
@@ -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)