Sharing the Truth with Friends

How do you confront an unbelieving friend involved in habitual sin? I’ve been hunting for a job for a long time. What should I do? My friends reject my explanation of 1 John 1:9. Is there a way that I can explain it better?