Fix - LS Custom wheels changement on bikes

Change the position of the condition GetVehicleClass (not working before and working now)
This commit is contained in:
Slewog
2022-05-08 00:46:53 +02:00
committed by GitHub
parent f32f40ff9a
commit 75a8084e56
+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