This commit is contained in:
gononono64 committed 2025-02-10 19:51:13 -06:00
commit 0eddc76c31
7 files changed
+54 -26

No files matched your search

+5
View File
@@ -37,3 +37,8 @@ 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**. 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. 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
**Join The Discord At** https://discord.gg/MukwBuJjP7
@@ -24,28 +24,3 @@ RegisterNetEvent('community_bridge:Client:DispatchAlert', function(alert)
Wait(alert.time) Wait(alert.time)
Bridge.Utility.RemoveBlip(blip) Bridge.Utility.RemoveBlip(blip)
end) 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)
--]]
@@ -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
@@ -0,0 +1,2 @@
if GetResourceState('cd_dispatch') ~= 'started' then return end
Dispatch = Dispatch or {}
@@ -8,7 +8,7 @@ Dispatch.SendAlert = function(data)
description = data.message or "Alert", description = data.message or "Alert",
isImportant = 0, isImportant = 0,
recipientList = data.jobs or {'police'}, recipientList = data.jobs or {'police'},
length = (data.alertTime * 1000) or '10000', length = data.time or '10000',
infoM = data.icon or 'fas fa-question', infoM = data.icon or 'fas fa-question',
info = data.message or "Alert" info = data.message or "Alert"
}, },
@@ -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
@@ -0,0 +1,2 @@
if GetResourceState('tk_dispatch') ~= 'started' then return end
Dispatch = Dispatch or {}