I have a dd with ASD but whether your dd is ND or not op, one suggestion for tackling this is preparation.
Break it down in to smaller steps. And it’s imperative that you remain very calm yourself.
It’s helpful to not to focus too much on what’s going wrong; but focus on what to do instead.
So talk to her at home when it’s calm. She’s not too old to role play it. Have fun pretending she’s playing at the park, play hide and seek or something, then tell her to stop and call her over to you. Role play over-excitedness. And role play calming down. Praise her when she comes when called. Then swap roles!
Then firmly but gently check she understands, and tell her clearly that she only gets park time with her friends if she agrees to stop and come to you straightaway. And that she must try and remain calm and she must never ever hit you ever again - and explain why - and that she will have all screens time taken away immediately if she does it again. (Follow through on this. Never threaten a punishment you don’t carry out.)
Then go back to playing and having fun and end on a positive note.
And talk to her a lot in other situations about managing her feelings. Read children’s books about this and work on it in other situations. Use a traffic light system if you need to. Teach box breathing to lessen frustration.
Then when you are invited on the next play date, remind her again. Clearly and calmly remind her of your agreement to come when called. And tell her she won’t go unless you get her agreement.
Then remind her again in situ just before the play date starts.
Then on the play date itself, a short while,before she is due to stop playing, tell her that you will soon be calling her to stop and come straight over to you, and say something like “I know I can trust you to do what we practised” .
If she misbehaves take her straight home and say, “we are not going on play dates until I can trust you to come when called”. Grey rock any protests and follow through.
Later on, when she asks to go on a play date, appear reluctant and say “I’m not sure because you don’t come when I call, and the time before that, I got hit by you” . She will promise to come straightaway and keep trying it until she gets it.
At the supermarket. In the playground. In the park.
All of this sounds like a faff but giving her a “system” to work with to lessen her frustration plus concrete steps to follow in practice usually works. And lots of praise of course for when she gets it right.