Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion modules/PoliceDispatch/client.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- Table of resources for dispatch systems. (custom is a placeholder for your application)
local resources = { {name = "linden_outlawalert"}, {name = "cd_dispatch"}, {name = "ps-dispatch"}, {name = "qs-dispatch"}, {name = "core_dispatch"}, {name = "custom"} }
local resources = { {name = "linden_outlawalert"}, {name = "cd_dispatch"}, {name = "ps-dispatch"}, {name = "qs-dispatch"}, {name = "core_dispatch"}, {name = "custom"}, {name = "origen_police"} }

-- Common tables for jobs and job types in the case of ps-dispatch.
local jobs = { 'police' }
Expand Down Expand Up @@ -113,6 +113,16 @@ local SelectDispatch = function()
data.colour
)
end
elseif resource.name == "origen_police" then
return function(data, playerCoords, locationInfo, gender)
TriggerServerEvent("SendAlert:police", {
coords = playerCoords,
title = data.message,
type = data.displayCode,
message = data.description,
job = 'police',
})
end
elseif resource.name == "custom" then
-- Custom dispatch system implementation placeholder
return function(data, playerCoords, locationInfo, gender)
Expand Down