From ca307d10d15ee99e13653fc09b5d020092903ac1 Mon Sep 17 00:00:00 2001 From: CoZmoTheGod <37917612+CoZmoTheGod@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:04:08 -0500 Subject: [PATCH 1/4] Update config.lua --- shared/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/config.lua b/shared/config.lua index f7d1c6a..4a796f8 100644 --- a/shared/config.lua +++ b/shared/config.lua @@ -84,7 +84,7 @@ Config.UseSyphoning = false -- Follow the Syphoning Install Guide to enable this Config.SyphonDebug = false -- Used for Debugging the syphon portion! Config.SyphonKitCap = 50 -- Maximum amount (in L) the syphon kit can fit! Config.SyphonPoliceCallChance = 25 -- Math.Random(1, 100) Default: 25% -Config.SyphonDispatchSystem = "ps-dispatch" -- Options: "ps-dispatch", "qb-dispatch", "qb-default" (just blips) or "custom" (Custom: you must configure yourself!) +Config.SyphonDispatchSystem = "ps-dispatch" -- Options: "cd_dispatch", "ps-dispatch", "qb-dispatch", "qb-default" (just blips) or "custom" (Custom: you must configure yourself!) --- Jerry Can ----- Config.UseJerryCan = true -- Enable the Jerry Can functionality. Will only work if properly installed. From d096a7bf0d7eae8c131fc9596ef45155a1e90cec Mon Sep 17 00:00:00 2001 From: CoZmoTheGod <37917612+CoZmoTheGod@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:12:25 -0500 Subject: [PATCH 2/4] Update fuel_cl.lua Added cd_dispatch support --- client/fuel_cl.lua | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/client/fuel_cl.lua b/client/fuel_cl.lua index 4d20072..3326393 100644 --- a/client/fuel_cl.lua +++ b/client/fuel_cl.lua @@ -1738,6 +1738,26 @@ local function PoliceAlert(coords) if chance < Config.SyphonPoliceCallChance then if Config.SyphonDispatchSystem == "ps-dispatch" then exports['ps-dispatch']:SuspiciousActivity() + elseif Config.SyphonDispatchSystem == "cd-dispatch" then + local data = exports['cd_dispatch']:GetPlayerInfo() + TriggerServerEvent('cd_dispatch:AddNotification', { + job_table = {'police', }, + coords = data.coords, + title = 'Suspicious Activity', + message = 'Suspicous Activity in Progress, + flash = 0, + unique_id = data.unique_id, + sound = 1, + blip = { + sprite = 456, + scale = 1.2, + colour = 3, + flashes = false, + text = '911 - Suspicious Activity', + time = 5, + radius = 0, + } + }) elseif Config.SyphonDispatchSystem == "qb-dispatch" then TriggerServerEvent('qb-dispatch:911call', coords) elseif Config.SyphonDispatchSystem == "qb-default" then @@ -2684,4 +2704,4 @@ CreateThread(function() end end end -end) \ No newline at end of file +end) From d7fdc0451c7fecaa2d231d5992ff60ff5a7c2117 Mon Sep 17 00:00:00 2001 From: CoZmoTheGod <37917612+CoZmoTheGod@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:20:06 -0500 Subject: [PATCH 3/4] Update config.lua --- shared/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/config.lua b/shared/config.lua index 4a796f8..f4e072e 100644 --- a/shared/config.lua +++ b/shared/config.lua @@ -84,7 +84,7 @@ Config.UseSyphoning = false -- Follow the Syphoning Install Guide to enable this Config.SyphonDebug = false -- Used for Debugging the syphon portion! Config.SyphonKitCap = 50 -- Maximum amount (in L) the syphon kit can fit! Config.SyphonPoliceCallChance = 25 -- Math.Random(1, 100) Default: 25% -Config.SyphonDispatchSystem = "ps-dispatch" -- Options: "cd_dispatch", "ps-dispatch", "qb-dispatch", "qb-default" (just blips) or "custom" (Custom: you must configure yourself!) +Config.SyphonDispatchSystem = "ps-dispatch" -- Options: "cd_dispatch", "ps-dispatch", "qb-dispatch", "qb-default" (just blips) or "custom" (Custom: you must configure yourself, line 1736!) --- Jerry Can ----- Config.UseJerryCan = true -- Enable the Jerry Can functionality. Will only work if properly installed. From 302002cf807abc76ef6d387f14a158160942b743 Mon Sep 17 00:00:00 2001 From: CoZmoTheGod <37917612+CoZmoTheGod@users.noreply.github.com> Date: Sun, 20 Aug 2023 07:36:32 -0500 Subject: [PATCH 4/4] Fixed typo for cd_dispatch --- client/fuel_cl.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/fuel_cl.lua b/client/fuel_cl.lua index 3326393..c37d6c5 100644 --- a/client/fuel_cl.lua +++ b/client/fuel_cl.lua @@ -1738,13 +1738,13 @@ local function PoliceAlert(coords) if chance < Config.SyphonPoliceCallChance then if Config.SyphonDispatchSystem == "ps-dispatch" then exports['ps-dispatch']:SuspiciousActivity() - elseif Config.SyphonDispatchSystem == "cd-dispatch" then + elseif Config.SyphonDispatchSystem == "cd_dispatch" then local data = exports['cd_dispatch']:GetPlayerInfo() TriggerServerEvent('cd_dispatch:AddNotification', { job_table = {'police', }, coords = data.coords, title = 'Suspicious Activity', - message = 'Suspicous Activity in Progress, + message = 'Suspicious Activity in Progress', flash = 0, unique_id = data.unique_id, sound = 1,