mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
turbo fix back again ?
This commit is contained in:
+12
-2
@@ -198,7 +198,9 @@ function GetAction(data)
|
||||
elseif v.modType == 'color1' or v.modType == 'color2' or v.modType == 'pearlescentColor' or v.modType == 'wheelColor' then
|
||||
local num = myCar[v.modType]
|
||||
table.insert(elements, {label = " " .. _U('by_default'), modType = k, modNum = num})
|
||||
else
|
||||
elseif v.modType == 17 then
|
||||
table.insert(elements, {label = " " .. _U('no_turbo'), modType = k, modNum = false})
|
||||
else
|
||||
table.insert(elements, {label = " " .. _U('by_default'), modType = k, modNum = -1})
|
||||
end
|
||||
|
||||
@@ -284,7 +286,7 @@ function GetAction(data)
|
||||
table.insert(elements, {label = _label, modType = 'modFrontWheels', modNum = j, wheelType = v.wheelType, price = v.price})
|
||||
end
|
||||
end
|
||||
elseif v.modType == 11 or v.modType == 12 or v.modType == 13 or v.modType == 15 or v.modType == 16 or v.modType == 18 then
|
||||
elseif v.modType == 11 or v.modType == 12 or v.modType == 13 or v.modType == 15 or v.modType == 16 then
|
||||
local modCount = GetNumVehicleMods(vehicle, v.modType) -- UPGRADES
|
||||
for j = 0, modCount, 1 do
|
||||
local _label = ''
|
||||
@@ -299,6 +301,14 @@ function GetAction(data)
|
||||
break
|
||||
end
|
||||
end
|
||||
elseif v.modType == 17 then -- TURBO
|
||||
local _label = ''
|
||||
if currentMods.modTurbo then
|
||||
_label = 'Turbo - <span style="color:cornflowerblue;">'.. _U('installed') ..'</span>'
|
||||
else
|
||||
_label = 'Turbo - <span style="color:green;">$' .. v.price .. ' </span>'
|
||||
end
|
||||
table.insert(elements, {label = _label, modType = k, modNum = true})
|
||||
else
|
||||
local modCount = GetNumVehicleMods(vehicle, v.modType) -- BODYPARTS
|
||||
for j = 0, modCount, 1 do
|
||||
|
||||
Reference in New Issue
Block a user