If you have a restraining order against you, it could affect your green card status. If the restraining order is based on domestic violence, it will be considered a grounds of inadmissibility under the Violence Against Women Act (VAWA). This means that if you are applying for a green card, or if you already have one and are trying to renew it, the restraining order could make you ineligible.
There are some exceptions to this rule, however. If the victim of the domestic violence is also your spouse or child, and they do not want you to be deported, they can submit a waiver on your behalf. The waiver would need to be approved by USCIS before you would be able to move forward with your green card application or renewal.
If you have been served with a restraining order, it's important to talk to an immigration attorney as soon as possible. They can help assess your situation and determine what options may be available to you.