2025-06-07 22:50:13 -04:00
|
|
|
---@diagnostic disable: duplicate-set-field
|
2025-05-18 23:45:37 -04:00
|
|
|
if GetResourceState('tk_dispatch') == 'missing' then return end
|
2025-02-10 17:51:37 -05:00
|
|
|
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'},
|
|
|
|
|
})
|
2025-05-10 00:01:56 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return Dispatch
|