Merge pull request #247 from Slewog/patch-1

Fix - LS Custom wheels changement on bikes
This commit is contained in:
Mycroft
2022-05-08 12:58:40 +01:00
committed by GitHub
+5 -2
View File
@@ -118,6 +118,11 @@ function UpdateMods(data)
if data.wheelType then
props['wheels'] = data.wheelType
if GetVehicleClass(vehicle) == 8 then -- Fix bug wheels for bikes.
props['modBackWheels'] = data.modNum
end
ESX.Game.SetVehicleProperties(vehicle, props)
props = {}
elseif data.modType == 'neonColor' then
@@ -132,8 +137,6 @@ function UpdateMods(data)
props['modSmokeEnabled'] = true
ESX.Game.SetVehicleProperties(vehicle, props)
props = {}
elseif data.modType == "modFrontWheels" and GetVehicleClass(vehicle) == 8 then -- Fix bug wheels for bikes.
props["modBackWheels"] = data.modNum
end
props[data.modType] = data.modNum