Update server.lua
This commit is contained in:
1 parent
fd3f62f288
commit
28b616f72d
1 file changed
+5
-5
@@ -7,11 +7,11 @@ Dispatch.SendAlert = function(src, alertData)
|
||||
exports['piotreq_gpt']:SendAlert(src, {
|
||||
title = alertData.message or "No message provided",
|
||||
code = alertData.code or '10-80',
|
||||
icon = alertData.icon or 'fas fa-question',
|
||||
icon = alertData.icon or 'fa-solid fa-question',
|
||||
info = {
|
||||
{icon = alertData.icon or 'fas fa-question', data = alertData.message or "No additional info", isStreet = false},
|
||||
{icon = 'fa-solid fa-road', isStreet = true},
|
||||
{icon = alertData.icon or 'fa-solid fa-question', data = alertData.message or "No additional info"},
|
||||
},
|
||||
--jobs = alertData.jobs or "police",
|
||||
blip = { -- optional
|
||||
scale = alertData.blipData and alertData.blipData.scale or 1.0,
|
||||
sprite = alertData.blipData and alertData.blipData.sprite or 161,
|
||||
@@ -24,7 +24,7 @@ Dispatch.SendAlert = function(src, alertData)
|
||||
name = alertData.message or "Dispatch Alert"
|
||||
},
|
||||
type = 'normal', -- default normal
|
||||
canAnswer = true, -- default false
|
||||
canAnswer = false, -- default false
|
||||
maxOfficers = 6, -- default 4
|
||||
time = 10,-- 10 minutes, default 5
|
||||
notifyTime = 8000, -- 8 seconds, default 7
|
||||
@@ -36,4 +36,4 @@ RegisterNetEvent('community_bridge:Server:piotreq_gpt', function(data)
|
||||
Dispatch.SendAlert(src, data)
|
||||
end)
|
||||
|
||||
return Dispatch
|
||||
return Dispatch
|
||||
Reference in new issue
Block a user