Death Marker Position Issue

If someone dies and they press g, a marker comes up, but it comes to the position of the EMS and not to the position of the dead person.

function StartDistressSignal()
  CreateThread(function()
    local timer = Config.BleedoutTimer

    while timer > 0 and isDead do
      Wait(0)
      timer = timer - 30

      SetTextFont(4)
      SetTextScale(0.5, 0.5)
      SetTextColour(200, 50, 50, 255)
      SetTextDropshadow(0.1, 3, 27, 27, 255)
      BeginTextCommandDisplayText('STRING')
      AddTextComponentSubstringPlayerName(_U('distress_send'))
      EndTextCommandDisplayText(0.43, 0.77)

      if IsControlJustReleased(0, 47) then
        SendDistressSignal()
        break
      end
    end
  end)
end

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

  ESX.ShowNotification(_U('distress_sent'))
  TriggerServerEvent('esx_ambulancejob:onPlayerDistress')
end

function DrawGenericTextThisFrame()
  SetTextFont(4)
  SetTextScale(0.0, 0.5)
  SetTextColour(255, 255, 255, 255)
  SetTextDropshadow(0, 0, 0, 0, 255)
  SetTextDropShadow()
  SetTextOutline()
  SetTextCentre(true)
end