From ca69c545fa1710b69ab8c53b61557af6ca6c44b4 Mon Sep 17 00:00:00 2001 From: KingMcDonalds Date: Wed, 26 Nov 2025 13:57:05 -0800 Subject: [PATCH] fixing lapd ulc --- .../[lapd-pack]/LAPD09Charg/ulc.lua | 51 +++++++++ .../[lapd-pack]/LAPDCVPIPack01/ulc.lua | 2 +- .../[lapd-pack]/LAPDCVPIPack02/ulc.lua | 51 +++++++++ .../[lapd-pack]/lapdcvpipack08/ulc.lua | 8 +- .../[lapd-pack]/lapdoldcvpi/ulc.lua | 51 +++++++++ resources/ulc/config.lua | 101 +++++++++++------- 6 files changed, 218 insertions(+), 46 deletions(-) create mode 100644 resources/[EGRP-CarPacks]/[lapd-pack]/LAPD09Charg/ulc.lua create mode 100644 resources/[EGRP-CarPacks]/[lapd-pack]/LAPDCVPIPack02/ulc.lua create mode 100644 resources/[EGRP-CarPacks]/[lapd-pack]/lapdoldcvpi/ulc.lua diff --git a/resources/[EGRP-CarPacks]/[lapd-pack]/LAPD09Charg/ulc.lua b/resources/[EGRP-CarPacks]/[lapd-pack]/LAPD09Charg/ulc.lua new file mode 100644 index 000000000..2cfb14117 --- /dev/null +++ b/resources/[EGRP-CarPacks]/[lapd-pack]/LAPD09Charg/ulc.lua @@ -0,0 +1,51 @@ +--[[ + Ultimate Lighting Controller Config + the ULC resource is required to use this configuration + get the resource here: https://github.com/Flohhhhh/ultimate-lighting-controller/releases/latest + + To learn how to setup and use ULC visit here: https://docs.dwnstr.com/ulc/overview +]] + +return { names = {"lapd09charger1", "lapd09charger2"}, + steadyBurnConfig = { + forceOn = false, useTime = false, + disableWithLights = false, + sbExtras = {} + }, + parkConfig = { + usePark = false, + useSync = false, + syncWith = {}, + pExtras = {}, + dExtras = {} + }, + hornConfig = { + useHorn = false, + hornExtras = {}, + }, + brakeConfig = { + useBrakes = false, + speedThreshold = 3, + brakeExtras = {} + }, + reverseConfig = { + useReverse = false, + reverseExtras = {} + }, + doorConfig = { + useDoors = false, + driverSide = {enable = {}, disable = {}}, + passSide = {enable = {}, disable = {}}, + trunk = {enable ={}, disable = {}} + }, + buttons = { + {label = "Stage 1", key = 1, color = "green", extra = 1, linkedExtras = {}, oppositeExtras = {}, offExtras = {3,4,5}, repair = true}, + {label = "Stage 2", key = 2, color = "green", extra = 4, linkedExtras = {}, oppositeExtras = {}, offExtras = {3,5}, repair = true}, + {label = "Stage 3", key = 3, color = "green", extra = 3, linkedExtras = {5}, oppositeExtras = {}, offExtras = {4}, repair = true} + }, + defaultStages = { + useDefaults = false, + enableKeys = {}, + disableKeys = {} + } +} \ No newline at end of file diff --git a/resources/[EGRP-CarPacks]/[lapd-pack]/LAPDCVPIPack01/ulc.lua b/resources/[EGRP-CarPacks]/[lapd-pack]/LAPDCVPIPack01/ulc.lua index 6b907c578..2932c7f62 100644 --- a/resources/[EGRP-CarPacks]/[lapd-pack]/LAPDCVPIPack01/ulc.lua +++ b/resources/[EGRP-CarPacks]/[lapd-pack]/LAPDCVPIPack01/ulc.lua @@ -6,7 +6,7 @@ To learn how to setup and use ULC visit here: https://docs.dwnstr.com/ulc/overview ]] -return { names = {"08lapdcvpi1", "08lapdcvpi2", "08lapdcvpighost", "08lapdcvpiharbor", "08lapdcvpisecsd"}, +return { names = {"lapdcvpialpr", "lapdcvpithermal", "2005LAPDCVPI_Hybrid1", "2005LAPDCVPI_Hybrid2", "2005LAPDCVPI_HybridH", "2008LAPDCVPI_77th1", "2008LAPDCVPI_77th2", "2008LAPDCVPI_Hardtop1", "2008LAPDCVPI_Hardtop2", "2008LAPDCVPI_Hybrid1", "2008LAPDCVPI_Hybrid2", "2008LAPDCVPI_HybridT", "2008LAPDCVPI_Traffic1", "08hybridcvpi1", "08hybridcvpi2", "08lapdcvpi1", "08lapdcvpi2", "08lapdcvpighost", "08lapdcvpiharbor", "08lapdcvpisecsd", "08lapdsap", "83727", "84361", "85734", "86385", "86399", "86486", "87136", "SHOP89471"}, steadyBurnConfig = { forceOn = false, useTime = false, disableWithLights = false, diff --git a/resources/[EGRP-CarPacks]/[lapd-pack]/LAPDCVPIPack02/ulc.lua b/resources/[EGRP-CarPacks]/[lapd-pack]/LAPDCVPIPack02/ulc.lua new file mode 100644 index 000000000..2932c7f62 --- /dev/null +++ b/resources/[EGRP-CarPacks]/[lapd-pack]/LAPDCVPIPack02/ulc.lua @@ -0,0 +1,51 @@ +--[[ + Ultimate Lighting Controller Config + the ULC resource is required to use this configuration + get the resource here: https://github.com/Flohhhhh/ultimate-lighting-controller/releases/latest + + To learn how to setup and use ULC visit here: https://docs.dwnstr.com/ulc/overview +]] + +return { names = {"lapdcvpialpr", "lapdcvpithermal", "2005LAPDCVPI_Hybrid1", "2005LAPDCVPI_Hybrid2", "2005LAPDCVPI_HybridH", "2008LAPDCVPI_77th1", "2008LAPDCVPI_77th2", "2008LAPDCVPI_Hardtop1", "2008LAPDCVPI_Hardtop2", "2008LAPDCVPI_Hybrid1", "2008LAPDCVPI_Hybrid2", "2008LAPDCVPI_HybridT", "2008LAPDCVPI_Traffic1", "08hybridcvpi1", "08hybridcvpi2", "08lapdcvpi1", "08lapdcvpi2", "08lapdcvpighost", "08lapdcvpiharbor", "08lapdcvpisecsd", "08lapdsap", "83727", "84361", "85734", "86385", "86399", "86486", "87136", "SHOP89471"}, + steadyBurnConfig = { + forceOn = false, useTime = false, + disableWithLights = false, + sbExtras = {} + }, + parkConfig = { + usePark = false, + useSync = false, + syncWith = {}, + pExtras = {}, + dExtras = {} + }, + hornConfig = { + useHorn = false, + hornExtras = {}, + }, + brakeConfig = { + useBrakes = false, + speedThreshold = 3, + brakeExtras = {} + }, + reverseConfig = { + useReverse = false, + reverseExtras = {} + }, + doorConfig = { + useDoors = false, + driverSide = {enable = {}, disable = {}}, + passSide = {enable = {}, disable = {}}, + trunk = {enable ={}, disable = {}} + }, + buttons = { + {label = "Stage 1", key = 1, color = "green", extra = 8, linkedExtras = {}, oppositeExtras = {}, offExtras = {5,6,7}, repair = false}, + {label = "Stage 2", key = 2, color = "red", extra = 5, linkedExtras = {7}, oppositeExtras = {6}, offExtras = {6}, repair = false}, + {label = "Stage 3", key = 3, color = "red", extra = 6, linkedExtras = {7}, oppositeExtras = {5}, offExtras = {5}, repair = false} + }, + defaultStages = { + useDefaults = false, + enableKeys = {}, + disableKeys = {} + } +} \ No newline at end of file diff --git a/resources/[EGRP-CarPacks]/[lapd-pack]/lapdcvpipack08/ulc.lua b/resources/[EGRP-CarPacks]/[lapd-pack]/lapdcvpipack08/ulc.lua index 4b34b3407..2932c7f62 100644 --- a/resources/[EGRP-CarPacks]/[lapd-pack]/lapdcvpipack08/ulc.lua +++ b/resources/[EGRP-CarPacks]/[lapd-pack]/lapdcvpipack08/ulc.lua @@ -6,7 +6,7 @@ To learn how to setup and use ULC visit here: https://docs.dwnstr.com/ulc/overview ]] -return { names = {"08lapdcvpi1", "08lapdcvpi2", "08lapdcvpighost", "08lapdcvpiharbor", "08lapdcvpisecsd"}, +return { names = {"lapdcvpialpr", "lapdcvpithermal", "2005LAPDCVPI_Hybrid1", "2005LAPDCVPI_Hybrid2", "2005LAPDCVPI_HybridH", "2008LAPDCVPI_77th1", "2008LAPDCVPI_77th2", "2008LAPDCVPI_Hardtop1", "2008LAPDCVPI_Hardtop2", "2008LAPDCVPI_Hybrid1", "2008LAPDCVPI_Hybrid2", "2008LAPDCVPI_HybridT", "2008LAPDCVPI_Traffic1", "08hybridcvpi1", "08hybridcvpi2", "08lapdcvpi1", "08lapdcvpi2", "08lapdcvpighost", "08lapdcvpiharbor", "08lapdcvpisecsd", "08lapdsap", "83727", "84361", "85734", "86385", "86399", "86486", "87136", "SHOP89471"}, steadyBurnConfig = { forceOn = false, useTime = false, disableWithLights = false, @@ -15,9 +15,9 @@ return { names = {"08lapdcvpi1", "08lapdcvpi2", "08lapdcvpighost", "08lapdcvpiha parkConfig = { usePark = false, useSync = false, - syncWith = {10}, - pExtras = {11}, - dExtras = {12} + syncWith = {}, + pExtras = {}, + dExtras = {} }, hornConfig = { useHorn = false, diff --git a/resources/[EGRP-CarPacks]/[lapd-pack]/lapdoldcvpi/ulc.lua b/resources/[EGRP-CarPacks]/[lapd-pack]/lapdoldcvpi/ulc.lua new file mode 100644 index 000000000..2932c7f62 --- /dev/null +++ b/resources/[EGRP-CarPacks]/[lapd-pack]/lapdoldcvpi/ulc.lua @@ -0,0 +1,51 @@ +--[[ + Ultimate Lighting Controller Config + the ULC resource is required to use this configuration + get the resource here: https://github.com/Flohhhhh/ultimate-lighting-controller/releases/latest + + To learn how to setup and use ULC visit here: https://docs.dwnstr.com/ulc/overview +]] + +return { names = {"lapdcvpialpr", "lapdcvpithermal", "2005LAPDCVPI_Hybrid1", "2005LAPDCVPI_Hybrid2", "2005LAPDCVPI_HybridH", "2008LAPDCVPI_77th1", "2008LAPDCVPI_77th2", "2008LAPDCVPI_Hardtop1", "2008LAPDCVPI_Hardtop2", "2008LAPDCVPI_Hybrid1", "2008LAPDCVPI_Hybrid2", "2008LAPDCVPI_HybridT", "2008LAPDCVPI_Traffic1", "08hybridcvpi1", "08hybridcvpi2", "08lapdcvpi1", "08lapdcvpi2", "08lapdcvpighost", "08lapdcvpiharbor", "08lapdcvpisecsd", "08lapdsap", "83727", "84361", "85734", "86385", "86399", "86486", "87136", "SHOP89471"}, + steadyBurnConfig = { + forceOn = false, useTime = false, + disableWithLights = false, + sbExtras = {} + }, + parkConfig = { + usePark = false, + useSync = false, + syncWith = {}, + pExtras = {}, + dExtras = {} + }, + hornConfig = { + useHorn = false, + hornExtras = {}, + }, + brakeConfig = { + useBrakes = false, + speedThreshold = 3, + brakeExtras = {} + }, + reverseConfig = { + useReverse = false, + reverseExtras = {} + }, + doorConfig = { + useDoors = false, + driverSide = {enable = {}, disable = {}}, + passSide = {enable = {}, disable = {}}, + trunk = {enable ={}, disable = {}} + }, + buttons = { + {label = "Stage 1", key = 1, color = "green", extra = 8, linkedExtras = {}, oppositeExtras = {}, offExtras = {5,6,7}, repair = false}, + {label = "Stage 2", key = 2, color = "red", extra = 5, linkedExtras = {7}, oppositeExtras = {6}, offExtras = {6}, repair = false}, + {label = "Stage 3", key = 3, color = "red", extra = 6, linkedExtras = {7}, oppositeExtras = {5}, offExtras = {5}, repair = false} + }, + defaultStages = { + useDefaults = false, + enableKeys = {}, + disableKeys = {} + } +} \ No newline at end of file diff --git a/resources/ulc/config.lua b/resources/ulc/config.lua index 3818f8d1b..06aa80501 100644 --- a/resources/ulc/config.lua +++ b/resources/ulc/config.lua @@ -133,50 +133,69 @@ Config = { "f350bubba", "g18charger2", "g18charger2rb", - "13lapdfpis2", - "16lapdexp", - "16lapdexpk9", - "metro16fpiu", - "metro16fpiu2", - "metro16fpiu3", - "lapd16fpiu", - "lapd16fpiu2", - "lapd16fpiusecsd", - "lapd16fpiutraffic", - "lapd16fpiutraffic2", - "lapd13fpiuv", - "lapd20sl", - "lapdfpis", - "lapdfpiua", - "13lasdfpiu", - "13lasdfpiu2", - "13lasdfpiua", - "lasd13fsfpiu", - "hybridfpis", + "lapd09charger1", + "lapd09charger2", + "lapd09dual", "lapd14charger", - "lapd14chargertd", - "lapd20sl", - "lapdalpr20", + "lapd14chargertd", + "metrocharger", "lapd14tahoe1", - "lapd14tahoe2", - "lapd14tahoe3", - "lapd14tahoe4", - "hybrid20fpiu", - "lapd20fpiu", - "lapd20fpiu2", - "lapd20fpiutraffic", - "lapd20fpiutraffic2", - "hybridfpis", - "lapdfpis", - "lapdfpis2", - "lapd09charger1", - "lapd09charger2", - "lapd09dual", - "lapd14charger", - "lapd14chargertd", - "metrocharger", + "lapd14tahoe2", + "lapd14tahoe3", + "lapd14tahoe4", + "lapd16fpiu", + "lapd16fpiu2", + "lapd16fpiusecsd", + "lapd16fpiutraffic", + "lapd16fpiutraffic2", + "metro16fpiu", + "metro16fpiu2", + "metro16fpiu3", + "hybrid20fpiu", + "lapd20fpiu", + "lapd20fpiu2", + "lapd20fpiutraffic", + "lapd20fpiutraffic2", + "LAPD12000", + "17colorado", + "lapdcvpialpr", + "lapdcvpithermal", + "2005LAPDCVPI_Hybrid1", + "2005LAPDCVPI_Hybrid2", + "2005LAPDCVPI_HybridH", + "2008LAPDCVPI_77th1", + "2008LAPDCVPI_77th2", + "2008LAPDCVPI_Hardtop1", + "2008LAPDCVPI_Hardtop2", + "2008LAPDCVPI_Hybrid1", + "2008LAPDCVPI_Hybrid2", + "2008LAPDCVPI_HybridT", + "2008LAPDCVPI_Traffic1", + "08hybridcvpi1", + "08hybridcvpi2", + "08lapdcvpi1", + "08lapdcvpi2", + "08lapdcvpighost", + "08lapdcvpiharbor", + "08lapdcvpisecsd", + "08lapdsap", + "SHOP89471", + "83727", + "84361", + "85734", + "86385", + "86399", + "86486", + "hybridfpis", "lapdfpis", - "lasd05cvpi", + "lapdfpis2", + "SHOP00000", + "SHOP80693", + "SHOP81622", + "SHOP83039", + "SHOP89471", + "SHOPFPIS", + "lasd05cvpi", "lasd06cvpi", "lasd06cvpicarson", "lasd06cvpisd7100",