compat cd_dispatchm tk_dispatch
This commit is contained in:
1 parent
ee8d811bf5
commit
ff21e76119
6 files changed
+50
-27
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user