Changing the time value fixed this.
I changed it to 4000:
The only issue is that you can't exit the animation until 4 seconds (4000 ms) pass.
EDIT: After those 4 seconds, GetAnimationName gives PED, IDLE_STANCE so this won't help you much.
You can lock a player and then check if he pressed ENTER and cancel the animation or something like that.
I changed it to 4000:
PHP Code:
ApplyAnimation(playerid,"BEACH","Lay_Bac_Loop", 4.1, 0, 1, 1, 1, 4000, 1);
The only issue is that you can't exit the animation until 4 seconds (4000 ms) pass.
EDIT: After those 4 seconds, GetAnimationName gives PED, IDLE_STANCE so this won't help you much.
You can lock a player and then check if he pressed ENTER and cancel the animation or something like that.