You need a lawyer's help. Don't get convicted of something you did not do
The answer to this question does not constitute legal advice nor does create a client relationship with the attorney answering this question. For more specific advice regarding your situation, please consult your lawyer.
Get a retained attorney and fight. Don't plead to anything you did not do. What is your friend saying? Is he saying you were in on it?
Yes you need an attorney and fight this case. I would add do not hang around with this friend or you will be back in trouble. Good Luck!