From 571888cfe042cb1966f42700c6a75b245ae1f91f Mon Sep 17 00:00:00 2001 From: TheFantomas <117121911+TheFantomas@users.noreply.github.com> Date: Thu, 17 Aug 2023 00:27:31 +0200 Subject: [PATCH] fix(es_extended): Remove driftTyres - errors (fivem issue) --- [core]/es_extended/client/functions.lua | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index fa791cde..079a0ee8 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -603,11 +603,6 @@ function ESX.Game.GetVehicleProperties(vehicle) end end - local driftTyresEnabled = false - if type(GetDriftTyresEnabled(vehicle) == "boolean") and GetDriftTyresEnabled(vehicle) then - driftTyresEnabled = true - end - local doorsBroken, windowsBroken, tyreBurst = {}, {}, {} local numWheels = tostring(GetVehicleNumberOfWheels(vehicle)) @@ -672,7 +667,6 @@ function ESX.Game.GetVehicleProperties(vehicle) neonColor = table.pack(GetVehicleNeonLightsColour(vehicle)), extras = extras, - driftTyresEnabled = driftTyresEnabled, tyreSmokeColor = table.pack(GetVehicleTyreSmokeColor(vehicle)), modSpoilers = GetVehicleMod(vehicle, 0), @@ -813,10 +807,6 @@ function ESX.Game.SetVehicleProperties(vehicle, props) end end - if props.driftTyresEnabled then - SetDriftTyresEnabled(vehicle, true) - end - if props.neonColor ~= nil then SetVehicleNeonLightsColour(vehicle, props.neonColor[1], props.neonColor[2], props.neonColor[3]) end