From 0d3a0e7e9f91778d90af4661fa66d7a458fbcc83 Mon Sep 17 00:00:00 2001 From: Blooper <122776166+Bloope18@users.noreply.github.com> Date: Fri, 5 Jan 2024 06:23:03 -0800 Subject: [PATCH 1/4] Update main.lua The player can easily enable or disable the test drive. --- client/main.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/main.lua b/client/main.lua index 82828b6..d319c43 100644 --- a/client/main.lua +++ b/client/main.lua @@ -335,8 +335,10 @@ local function openVehicleSellMenu() arrow = true } if config.shops[insideShop].type == 'free-use' then - options = { - { + options = {} + + if config.enableTestDrive then + options[#options + 1] = { title = Lang:t('menus.test_header'), description = Lang:t('menus.freeuse_test_txt'), event = 'qbx_vehicleshop:client:testDrive', @@ -344,7 +346,7 @@ local function openVehicleSellMenu() vehicle = vehicle } } - } + end if config.enableFreeUseBuy then options[#options + 1] = { From 4173f19f44a433445ddff88b12d9f5b4f988c8d1 Mon Sep 17 00:00:00 2001 From: Blooper <122776166+Bloope18@users.noreply.github.com> Date: Fri, 5 Jan 2024 06:26:57 -0800 Subject: [PATCH 2/4] Update main.lua The player can easily enable or disable the test drive. --- client/main.lua | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/client/main.lua b/client/main.lua index d319c43..0a6154a 100644 --- a/client/main.lua +++ b/client/main.lua @@ -372,13 +372,6 @@ local function openVehicleSellMenu() options[#options + 1] = swapOption else options = { - { - title = Lang:t('menus.test_header'), - description = Lang:t('menus.managed_test_txt'), - onSelect = function() - startTestDrive(vehicle) - end, - }, { title = Lang:t('menus.managed_sell_header'), description = Lang:t('menus.managed_sell_txt'), @@ -388,6 +381,16 @@ local function openVehicleSellMenu() } } + if config.enableTestDrive then + options[#options + 1] = { + title = Lang:t('menus.test_header'), + description = Lang:t('menus.managed_test_txt'), + onSelect = function() + startTestDrive(vehicle) + end + } + end + if config.finance.enable then options[#options + 1] = { title = Lang:t('menus.finance_header'), From 25808d74e2c033b3ca0f7379099171390ca5391d Mon Sep 17 00:00:00 2001 From: Blooper <122776166+Bloope18@users.noreply.github.com> Date: Fri, 5 Jan 2024 06:29:41 -0800 Subject: [PATCH 3/4] Update client.lua The player can easily enable or disable the test drive. --- config/client.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/client.lua b/config/client.lua index 192d24a..1cc9028 100644 --- a/config/client.lua +++ b/config/client.lua @@ -2,7 +2,8 @@ return { useTarget = false, debugPoly = false, enableFreeUseBuy = true, -- Allows players to buy from NPC shops - + enableTestDrive = false, + finance = { enable = true, -- Enables the financing system. Turning this off does not affect already financed vehicles commissionRate = 0.05, -- Percent that goes to sales person from a finance sale 5% @@ -1778,4 +1779,4 @@ return { shop = 'pdm', }, }, -} \ No newline at end of file +} From 61c3930dc3f43089e943e2adcdb94eb2880b6e1e Mon Sep 17 00:00:00 2001 From: Blooper <122776166+Bloope18@users.noreply.github.com> Date: Fri, 5 Jan 2024 06:29:55 -0800 Subject: [PATCH 4/4] Update client.lua The player can easily enable or disable the test drive. --- config/client.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/client.lua b/config/client.lua index 1cc9028..092bb77 100644 --- a/config/client.lua +++ b/config/client.lua @@ -2,7 +2,7 @@ return { useTarget = false, debugPoly = false, enableFreeUseBuy = true, -- Allows players to buy from NPC shops - enableTestDrive = false, + enableTestDrive = true, finance = { enable = true, -- Enables the financing system. Turning this off does not affect already financed vehicles