[HELP] I can not notify police or other jobs in any way

I was trying to make gcphone notify police, ambulance or other jobs. Went through all possible forums topics tried all the suggestions and it still does not work. Later I decided to implement my own way to notify jobs when someone calls them. That did not work either. Tried to write a short script for testing:

RegisterCommand('notifypol', function()
    local notification = {
        title    = 'title',
        subject  = 'subject',
        msg      = 'msg',
        iconType = 1
    }
    TriggerServerEvent('esx_service:notifyAllInService', notification, 'police')
end)

That does not show any notifications for police (in this case) either.
Is there something I might be doing wrong or missing something that might cause this?

P.S. Distress signal when dead does not send anything to ambulance either

Hello!
Did you write this Line’s in the specific Job?

Best Regards :smiley:

No, I put it in seperate resource, but tried putting in esx_policejob as well

Do you use ESX?

esx it is

So, i have this in my esx_policejob -> client -> main.lua — LINE 2018

function SendPoliceDistressSignal()
	local playerPed = GetPlayerPed(-1)
	local coords	= GetEntityCoords(playerPed)

	ESX.ShowNotification(_U('distress_sent'))
	TriggerServerEvent('esx_phone:send', 'police', _U('police_distress_message'), false, {
		x = coords.x,
		y = coords.y,
		z = coords.z
	})
end

Maybe change it there?

AND in Line 1359:

RegisterNetEvent('esx_phone:loaded')
AddEventHandler('esx_phone:loaded', function(phoneNumber, contacts)
	local specialContact = {
		name       = _U('phone_police'),
		number     = 'police',
		base64Icon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd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pI9butLJn2y6iba+hlp7C09qBcvoN7FYL9mhxo1/y/LoEXK8Pv6qIC8WbBY/xr9YlPLf9dZT+OqKTUwfmDBm/GOw7ws4FWpuUP2gJEZvKqmocuXPZuWYJMzKuSsH+SNwh3bo0p6hao6HeEqwYEZ2M6aKWd3PwTCy7du/D0F1DsmzE6/WGLr5LsDF4LggnYBacCOboQLHQ3FFfR58SR+HCR1iQH8ukhA5s5o5AYZMwUqOp74nl8xvRHDlRTsnxYpJsUjtsceHt2C8Fm0MPJrphTkZvBc4It9RKLOFx91Pf0Igu0k7W2MmkOewS2QYJUJVWVz9VNbXUVVwkyuAmKTFJayrDo/4Jwe/CT0aGYTrWVYEeUfsgXssMRcpyenraQJa0VX9O3ZU+Ma1fax4xGxUsUVFkOUbcama1hf+7+LmA9juHWshwmwOE1iMmCFYEzg1jtIm1BaxW6wCGGoFdewPfvyE4ertTiv4rHC73B855dwp2a23bbd4tC1hvhOCbX7b4VyUQKhxrtSOaYKngasizvwi0RmOS4O1QZf2yYfiaR+73AvhTQEVf+rpn9/8IMAChKDrDzfsdIQAAAABJRU5ErkJggg=='
	}

	TriggerEvent('esx_phone:addSpecialContact', specialContact.name, specialContact.number, specialContact.base64Icon)
end)

I guess you need to change this

it only shows this for sender, nothing else

Please check this Link … You may find your Solution there :wink:
here

And? Did you found a Solution there? :wink:

Tried everything from there, still the same

You need to update all your distress signals from

function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)

ESX.ShowNotification(_U(‘distress_sent’))
TriggerServerEvent(‘esx_phone:send’, ‘ambulance’, _U(‘distress_message’), false, {
x = coords.x,
y = coords.y,
z = coords.z
})
end

To

function SendDistressSignal()
local playerPed = PlayerPedId()
PedPosition = GetEntityCoords(playerPed)

local PlayerCoords = { x = PedPosition.x, y = PedPosition.y, z = PedPosition.z }

ESX.ShowNotification(_U(‘distress_sent’))

TriggerServerEvent('esx_addons_gcphone:startCall', 'ambulance', _U('distress_message'), PlayerCoords, {

  PlayerCoords = { x = PedPosition.x, y = PedPosition.y, z = PedPosition.z },

})
end

Also you said you followed everything in that link it literally tells you in his original post how to do it. You needs the esx_addons_gcphone resource as well

Well I did that and I obviously do have the esx addons gcphone

Do you have them starting in the correct order in your server.cfg

Yup, I do, like I said tried everything from the forums topics I was able to find online. Tried 4 or 5 different gcphone resources. I am looking for solution for nearly a week.

My resources work perfectly fine and I changed them a month ago after the ESX latest update and everything worked fine, if you think sharing my resources would help you, let me know so I can send them over and tell you what to change.