From e4298e1eb83b5f79351c72b4a9d8edde9a78404b Mon Sep 17 00:00:00 2001 From: hmmehdi Date: Fri, 11 Nov 2022 11:46:47 +0100 Subject: [PATCH] fix(esx_lscustom): config based default wheels price --- [esx_addons]/esx_lscustom/client/main.lua | 2 +- [esx_addons]/esx_lscustom/config.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/[esx_addons]/esx_lscustom/client/main.lua b/[esx_addons]/esx_lscustom/client/main.lua index dd26f219..cc5d0535 100644 --- a/[esx_addons]/esx_lscustom/client/main.lua +++ b/[esx_addons]/esx_lscustom/client/main.lua @@ -243,7 +243,7 @@ function GetAction(data) modType = "modFrontWheels", modNum = -1, wheelType = -1, - price = 1 + price = Config.DefaultWheelsPriceMultiplier }) else table.insert(elements, { diff --git a/[esx_addons]/esx_lscustom/config.lua b/[esx_addons]/esx_lscustom/config.lua index 3ed2514d..cb78e7ef 100644 --- a/[esx_addons]/esx_lscustom/config.lua +++ b/[esx_addons]/esx_lscustom/config.lua @@ -68,6 +68,8 @@ Config.Colors = { {label = TranslateCap('gold'), value = 'gold'} } +Config.DefaultWheelsPriceMultiplier = 2 + function GetColors(color) local colors = {} if color == 'black' then