diff --git a/client/main.lua b/client/main.lua index 731029f5..71bb82a1 100644 --- a/client/main.lua +++ b/client/main.lua @@ -78,9 +78,12 @@ function OpenLSMenu(elems, menuname, menutitle, parent) if isRimMod then price = math.floor(vehiclePrice * data.current.price / 100) TriggerServerEvent("esx_lscustom:buyMod", price) - elseif v.modType == 11 or v.modType == 12 or v.modType == 13 or v.modType == 15 or v.modType == 16 or v.modType == 17 then + elseif v.modType == 11 or v.modType == 12 or v.modType == 13 or v.modType == 15 or v.modType == 16 then price = math.floor(vehiclePrice * v.price[data.current.modNum + 1] / 100) TriggerServerEvent("esx_lscustom:buyMod", price) + elseif v.modType == 17 then + price = math.floor(vehiclePrice * v.price[1] / 100) + TriggerServerEvent("esx_lscustom:buyMod", price) else price = math.floor(vehiclePrice * v.price / 100) TriggerServerEvent("esx_lscustom:buyMod", price) @@ -303,10 +306,10 @@ function GetAction(data) end elseif v.modType == 17 then -- TURBO local _label = '' - if currentMods.modTurbo then + if currentMods[k] then _label = 'Turbo - '.. _U('installed') ..'' else - _label = 'Turbo - $' .. v.price .. ' ' + _label = 'Turbo - $' .. v.price[1] .. ' ' end table.insert(elements, {label = _label, modType = k, modNum = true}) else @@ -419,4 +422,4 @@ Citizen.CreateThread(function() end end -end) \ No newline at end of file +end)