My advice is why don't you start with some simple things first like making small positive changes in your routine. Getting up early, eating healthy, exercising, meditating for 10 min a day. In my experience these small changes infuse me with energy to deal with problems in my life. Once you feel more hopeful and confident about yourself you can decide what is best for you. Weather getting a new job near your place, going free lancing or something else.
All of us at one point or another feel lost and connecting with your friends and family helps a lot but its most important to connect back to yourself.
Best of luck.