diff --git a/client/fuel_cl.lua b/client/fuel_cl.lua index 4d20072..c37d6c5 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 = 'Suspicious 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) diff --git a/shared/config.lua b/shared/config.lua index f7d1c6a..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: "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.