From 592b2d10789c68314f4e2d747e73ffd717c9e42b Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Mon, 10 Feb 2025 13:29:40 -0500 Subject: [PATCH 1/3] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 0c50183..e56698b 100644 --- a/README.md +++ b/README.md @@ -37,3 +37,6 @@ Crafted with care, the bridge is as **user-friendly** as a friendly hobbit’s h This bridge will **not fall victim to the ego of any single individual**, for its foundation lies in the belief that any contribution of value to the community, if it adheres to the simple philosophy of **simplicity**, and ensures an easy path for all, is **welcome**. The aim, much like the hobbits' journey to Morridor, is to create a **free, open, community-driven bridge**, one that serves the needs of the many and welcomes all who wish to add their mark to the map. + + +**Docs available at** https://mrnewbs-scrips.gitbook.io/the-order-of-the-sacred-framework \ No newline at end of file From ee8d811bf5a1e370dc68ac02125d2c4ebcb850cf Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Mon, 10 Feb 2025 13:31:49 -0500 Subject: [PATCH 2/3] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e56698b..6b6e518 100644 --- a/README.md +++ b/README.md @@ -39,4 +39,6 @@ This bridge will **not fall victim to the ego of any single individual**, for it The aim, much like the hobbits' journey to Morridor, is to create a **free, open, community-driven bridge**, one that serves the needs of the many and welcomes all who wish to add their mark to the map. -**Docs available at** https://mrnewbs-scrips.gitbook.io/the-order-of-the-sacred-framework \ No newline at end of file +**Docs available At** https://mrnewbs-scrips.gitbook.io/the-order-of-the-sacred-framework + +**Join The Discord At** https://discord.gg/MukwBuJjP7 \ No newline at end of file From ff21e76119938780f20fbb1f02a1b338ec54d1ab Mon Sep 17 00:00:00 2001 From: MrNewb <47620135+MrNewb@users.noreply.github.com> Date: Mon, 10 Feb 2025 17:51:37 -0500 Subject: [PATCH 3/3] compat cd_dispatchm tk_dispatch --- modules/dispatch/_default/client/client.lua | 27 +------------------ .../dispatch/cd_dispatch/client/client.lua | 24 +++++++++++++++++ .../dispatch/cd_dispatch/server/server.lua | 2 ++ .../linden_outlawalert/client/client.lua | 2 +- .../dispatch/tk_dispatch/client/client.lua | 20 ++++++++++++++ .../dispatch/tk_dispatch/server/server.lua | 2 ++ 6 files changed, 50 insertions(+), 27 deletions(-) create mode 100644 modules/dispatch/cd_dispatch/client/client.lua create mode 100644 modules/dispatch/cd_dispatch/server/server.lua create mode 100644 modules/dispatch/tk_dispatch/client/client.lua create mode 100644 modules/dispatch/tk_dispatch/server/server.lua diff --git a/modules/dispatch/_default/client/client.lua b/modules/dispatch/_default/client/client.lua index ddb3718..881e1e8 100644 --- a/modules/dispatch/_default/client/client.lua +++ b/modules/dispatch/_default/client/client.lua @@ -23,29 +23,4 @@ RegisterNetEvent('community_bridge:Client:DispatchAlert', function(alert) local blip = Bridge.Utility.CreateBlip(alert.coords, alert.blipData.sprite, alert.blipData.color, alert.blipData.scale, alert.code, true) Wait(alert.time) Bridge.Utility.RemoveBlip(blip) -end) - ---[[ -RegisterCommand('testalert', function(source, args) - print('sending alert') - local ped = cache.ped - local vehicle = cache.vehicle - Dispatch.SendAlert({ - vehicle = vehicle or nil, - plate = vehicle and GetVehicleNumberPlateText(vehicle) or nil, - ped = ped, - pedCoords = ped and GetEntityCoords(ped), - coords = GetEntityCoords(ped), - blipData = { - sprite = 161, - color = 1, - scale = 0.8, - }, - message = "Vehicle is being stolen", - code = '10-80', - icon = 'fas fa-question', - jobs = {'police'}, - alertTime = 10 - }) -end, false) ---]] \ No newline at end of file +end) \ No newline at end of file diff --git a/modules/dispatch/cd_dispatch/client/client.lua b/modules/dispatch/cd_dispatch/client/client.lua new file mode 100644 index 0000000..b9e0aa2 --- /dev/null +++ b/modules/dispatch/cd_dispatch/client/client.lua @@ -0,0 +1,24 @@ +if GetResourceState('cd_dispatch') ~= 'started' then return end +Dispatch = Dispatch or {} + +Dispatch.SendAlert = function(data) + local plyrData = exports['cd_dispatch']:GetPlayerInfo() + TriggerServerEvent('cd_dispatch:AddNotification', { + job_table = data.jobs, + coords = data.coords, + title = data.message, + message = data.message, + flash = 0, + unique_id = plyrData.unique_id, + sound = 1, + blip = { + sprite = data.blipData.sprite, + scale = data.blipData.scale, + colour = data.blipData.color, + flashes = false, + text = data.message, + time = (data.time / 1000), + radius = 0, + } + }) +end \ No newline at end of file diff --git a/modules/dispatch/cd_dispatch/server/server.lua b/modules/dispatch/cd_dispatch/server/server.lua new file mode 100644 index 0000000..364e335 --- /dev/null +++ b/modules/dispatch/cd_dispatch/server/server.lua @@ -0,0 +1,2 @@ +if GetResourceState('cd_dispatch') ~= 'started' then return end +Dispatch = Dispatch or {} diff --git a/modules/dispatch/linden_outlawalert/client/client.lua b/modules/dispatch/linden_outlawalert/client/client.lua index 1d19ea2..3b936e0 100644 --- a/modules/dispatch/linden_outlawalert/client/client.lua +++ b/modules/dispatch/linden_outlawalert/client/client.lua @@ -8,7 +8,7 @@ Dispatch.SendAlert = function(data) description = data.message or "Alert", isImportant = 0, recipientList = data.jobs or {'police'}, - length = (data.alertTime * 1000) or '10000', + length = data.time or '10000', infoM = data.icon or 'fas fa-question', info = data.message or "Alert" }, diff --git a/modules/dispatch/tk_dispatch/client/client.lua b/modules/dispatch/tk_dispatch/client/client.lua new file mode 100644 index 0000000..7d112fb --- /dev/null +++ b/modules/dispatch/tk_dispatch/client/client.lua @@ -0,0 +1,20 @@ +if GetResourceState('tk_dispatch') ~= 'started' then return end +Dispatch = Dispatch or {} + +Dispatch.SendAlert = function(data) + exports.tk_dispatch:addCall({ + title = data.message, + code = data.code or '10-80', + priority = 'Priority 3', + coords = data.coords or GetEntityCoords(PlayerPedId()), + showLocation = true, + showGender = false, + playSound = true, + blip = { + color = data.blipData.color or 3, + sprite = data.blipData.sprite or 1, + scale = data.blipData.scale or 0.8, + }, + jobs = data.jobs or {'police'}, + }) +end \ No newline at end of file diff --git a/modules/dispatch/tk_dispatch/server/server.lua b/modules/dispatch/tk_dispatch/server/server.lua new file mode 100644 index 0000000..43020fb --- /dev/null +++ b/modules/dispatch/tk_dispatch/server/server.lua @@ -0,0 +1,2 @@ +if GetResourceState('tk_dispatch') ~= 'started' then return end +Dispatch = Dispatch or {} \ No newline at end of file