mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user