@@ -46,23 +46,24 @@ local function handleRequestingEms()
4646 if not EmsNotified then
4747 qbx .drawText2d ({ text = locale (' info.request_help' ), coords = textLocation - textRequestOffset , scale = 0.6 })
4848 if IsControlJustPressed (0 , 47 ) then
49- TriggerServerEvent (' cd_dispatch:AddNotification' , {
50- job_table = { ' sams' },
51- coords = GetEntityCoords (cache .ped ),
49+ local playerData = exports [' fd_dispatch' ]:getPlayerData ()
50+ local data = {
5251 title = ' Downed Individual' ,
53- message = ' Citizens reporting a downed individual.' ,
54- flash = 0 ,
55- unique_id = tostring (math.random (0000000 , 9999999 )),
52+ description = ' Citizens reporting a downed individual.' ,
5653 blip = {
54+ coords = GetEntityCoords (cache .ped ),
5755 sprite = 280 ,
56+ color = 1 ,
5857 scale = 1.2 ,
59- colour = 1 ,
60- flashes = false ,
61- text = ' Downed Individual' ,
62- time = (5 * 60 * 1000 ),
63- sound = 1 ,
64- }
65- })
58+ time = 5 * 60 * 1000
59+ },
60+ groups = { ' sams' },
61+ priority = 1 ,
62+ code = ' 10-52' ,
63+ location = { coords = GetEntityCoords (cache .ped ), street = playerData .street_1 },
64+ isEmergency = true
65+ }
66+ TriggerServerEvent (' fd_dispatch:events:addAlert' , data )
6667 -- TriggerServerEvent('hospital:server:ambulanceAlert', locale('info.civ_down'))
6768 EmsNotified = true
6869 end
@@ -107,4 +108,4 @@ CreateThread(function()
107108 Wait (1000 )
108109 end
109110 end
110- end )
111+ end )
0 commit comments