fix distress signal ambu job
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('gksphone:jbmessage', 'ambulance', _U('distress_message'), PlayerCoords, {
PlayerCoords = { x = PedPosition.x, y = PedPosition.y, z = PedPosition.z },
})
end
AmbulanceJob DistressSignal
function SendDistressSignal()
local playerPed = PlayerPedId()
local coords = GetEntityCoords(playerPed)
local myPos = GetEntityCoords(PlayerPedId())
local GPS = 'GPS: ' .. myPos.x .. ', ' .. myPos.y
ESX.ShowNotification(_U('distress_sent'))
ESX.TriggerServerCallback('gksphone:namenumber', function(Races)
local name = Races[2].firstname .. ' ' .. Races[2].lastname
TriggerServerEvent('gksphone:jbmessage', name, Races[1].phone_number, 'Sürgősségi segélyértesítés', '', GPS, 'ambulance')
end)
end