Hello, i finally fixed evething, and i can share the fully fixed phone, the only problem is that when i send distress signal to ems i got this and no message coming! Please any help?
It says The person you are calling is currently unavailble all the time! How can i fix this? this is the only think i didnt fixed!
Ok i know im pretty late but hope it helps for anybody needs help with this issue
Go into your esx_ambulancejob/client/main.lua
Search for "SendDistressSignal"
replace the SendDistressSignal function with this
function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
local myPos = GetEntityCoords(PlayerPedId())
local GPS = 'GPS: ' .. myPos.x .. ', ' .. myPos.y
ESX.TriggerServerCallback('gksphone:namenumber', function(Races)
local name = Races[2].firstname .. ' ' .. Races[2].lastname
TriggerServerEvent('gksphone:jbmessage', name, Races[1].phone_number, 'Emergency aid notification', '', GPS, 'ambulance', false)
end)
end
hope it helps