ed
This commit is contained in:
parent
510e3ffcf2
commit
f43cf424cf
305 changed files with 34683 additions and 0 deletions
|
@ -0,0 +1,23 @@
|
|||
---@diagnostic disable: duplicate-set-field
|
||||
if GetResourceState('tk_dispatch') == 'missing' 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
|
||||
|
||||
return Dispatch
|
Loading…
Add table
Add a link
Reference in a new issue