How do they actually have to serve you an ex-parte order against you for it to really be legal ?

How do they actually have to serve you an ex-parte order against you for it to really be legal ?
Cop had me pull over an told me my ex got a restraining order against me but never got out of her car an handed it to me . She keep it an left is that still concerned being served an is it legal

Justin’s Answer
I do not believe this constitutes service, but an ex parte is valid and enforceable before being served. Your case is too specific to go over in a post. You should contact a local attorney to explore your options.