Hi, I'm no lawyer, but I do know that courts like lots of documentation. Has your friend called the police on the boyfriend? Unfortunately, she will probably need some complaints filed against him with the cops. Court papers do not stop exboyfriends from harming women, so the best advice to give her is keep a gun, baseball bat, empty wine bottle close by, have her stay somewhere else, change her routines and move.
There are quite a few police reports, but sadly the judge won't listen to her again. and the apartment complex she live in doesn't allow firearms on the premesis (this was voted on by the tentants after an incident) and if the ex shows up and causes problems she will get evitcted.