From da5250356b82550edd9a810ea0901499bd98f8dd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 16:45:16 +0000 Subject: [PATCH 1/2] Initial plan From 073e4d17bb7ff6ff7166cd753af63c527e9af4f1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 13 Dec 2025 16:48:47 +0000 Subject: [PATCH 2/2] Fix console spam by adding vehicle check in setDefaultStages() Co-authored-by: Flohhhhh <48927090+Flohhhhh@users.noreply.github.com> --- ulc/client/c_stages.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ulc/client/c_stages.lua b/ulc/client/c_stages.lua index 25e2fe9..d0aaa61 100644 --- a/ulc/client/c_stages.lua +++ b/ulc/client/c_stages.lua @@ -136,6 +136,7 @@ function setDefaultStages() -- default stages if not MyVehicleConfig.defaultStages or false then return end if not MyVehicleConfig.defaultStages.useDefaults then return end + if not IsPedInAnyVehicle(PlayerPedId(), false) then return end for _, e in pairs(MyVehicleConfig.defaultStages.enableKeys) do local button = GetButtonByExtra(GetExtraByKey(e)) if not button then break end