All is in the title, help me please, I want to freeze my animation when we are like:

Thanks to this, I will be able to wait that the player press E to continue the animation, thank you ! 
Same here. I’m trying to do the suicide animation, and pause at a certain time.
Play just that anim in a loop, theres plenty of animations in a single animation, if that is an scenario there is multiple of animations.
I can’t find one for the suicide. I’m trying to make it so the gun stays at the head.
(EDIT) Maybe TaskPlayAnimAdvanced might work.
Here’s what I got:
local co = GetEntityCoords(GetPlayerPed(-1))
local he = GetEntityHeading(GetPlayerPed(-1))
TaskPlayAnimAdvanced(GetPlayerPed(-1), "mp_suicide", "pistol", co.x, co.y, co.z, 0, 0, he, 8.0, 1.0, -1, 49, 0.0, 0, 0)
I tried changing the 0.0 near the end to 0.5, but when it loops, it starts at the beginning…
All I need to figure out, is how to stop the animation from looping past a certain point, and stay at the part that I want.
Because when I change the -1 flag , it stops looping, but I need to be able to keep the 49 flag.
I need to pretty much be able to make it play for 300ms and keep looping like that.
Trying to get it to stay like this…

(Edit): Use 50 as the flag rather than 49 (Thank you xander).
Still trying to figure out how to stop the animation at this point in the image ^^^^^
Here is how to add multiple animation flags
(Credit: xander1998)
Still trying to figure out how to stop it at a certain point.
If I change the -1, it will stop looping.
And adding 1 for the ANIM_FLAG_REPEAT doesn’t work.
What animation is the one in the photo?
The animation names “mp_suicide”
although it’s a bit of an old request, you can use the native SetEntityAnimSpeed - FiveM Natives @ Cfx.re Docs to stop it at any time
(it is not synchronized so you have to have it run from an event that you send to the server)