If you need to hire a lawyer and have no money to pay for the lawyer then you can usually get a court appointed attorney for no extra charge.
You can also see if you qualify for legal aid if your income falls below the level of income required.
Going to a law school can sometimes get you a cheap lawyer that will work with you and provide you payment plans to help you in paying the attorney or lawyer fees.
Or maybe look into getting a small loan to pay the attorney or lawyer you hire and then pay back the loan overtime.
Or if possible you can represent yourself in court as you do not have to hire a lawyer to go to court but having a lawyer is a good idea if you do not know the ins and outs of the law.