I want to ask my wife to pay attention to me while she's out with her friends.
Why do you want to ask your wife to pay attention to you?
Because she annoys me. I don't like her friends either.
While it is understandable if you are feeling lonely and left out, you shouldn't try to order your wife to pay attention to you while she's with her friends. It's antagonizing behavior and will do nothing to improve your relationship. You should try to talk to your wife in quiet time and place about your needs and how her friends make you feel so you can resolve the issues that have come up in your relationship with her.
I don't want her her to hang out with her friends, but I don't want to bother her during that time.
I'm sure she hangs out with her friends not that often, so I do hope you're not antagonizing her with that. What would you feel if she bans you for hanging out with your friends? It wouldn't feel very good, will it?