mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
fixed Free Tuning Bug after being shot by a stun gun
This commit is contained in:
@@ -42,6 +42,9 @@ end)
|
||||
RegisterNetEvent('esx_lscustom:cancelInstallMod')
|
||||
AddEventHandler('esx_lscustom:cancelInstallMod', function()
|
||||
local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
|
||||
if (GetPedInVehicleSeat(vehicle, -1) ~= PlayerPedId()) then
|
||||
vehicle = GetPlayersLastVehicle(PlayerPedId())
|
||||
end
|
||||
ESX.Game.SetVehicleProperties(vehicle, myCar)
|
||||
if not (myCar.modTurbo) then
|
||||
ToggleVehicleMod(vehicle, 18, false)
|
||||
|
||||
Reference in New Issue
Block a user