mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 02:08:55 +00:00
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:
committed by
GitHub
parent
4d7dc79eae
commit
256dcb09aa
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user