fivem icon indicating copy to clipboard operation
fivem copied to clipboard

Issues with NetworkCreateSynchronisedScene and animations in general (wacky support for it)

Open mcNuggets1 opened this issue 1 year ago • 1 comments

What happened?

First of all:

  • There currently is no support at all, to remove ragdolling from a player to set them to an animation.
  • There currently is no support at all to set a player to an animation instantenous, if they are dead or obstructed in any way.

So I got around using NetworkCreateSynchronisedScene, instead of TaskPlayAnim, because TaskPlayAnim has a huge bug which makes it useless for my case. I wanted to make a player laying on the ground, enter a dying animation, that's all.

So I used TaskPlayAnim. Resulted in every player seeing the player get up (like when doing ClearPedTasks) and then entering the animation. Which looks obviously ridicilious and can't be used.

So yeah, I used NetworkCreateSynchronisedScene, but even this native is full of bugs. Sometimes players see themselves doing the animation, but for others they just stand around doing nothing. It seems to happen at random, mostly in situations the player that plays the animation is obstructed in some sort. Eg it happens most when the player is ragdolled or in some other sort of restriction.

And even in this case, there are instances in which the player has the same behaviour as in TaskPlayAnim

Here is a screenshot of said occurence. I already debugged everything possible and the other player sees themselves as playing the animation correctly, while they don't.

https://i.imgur.com/SUXhsEE.png That's all info I have rn. A fix is highly appreciated, especially because there are no known workarounds i could find...

Expected result

A working native with no frustration

Reproduction steps

Above explained

Importancy

Slight inconvenience

Area(s)

FiveM, FXServer

Specific version(s)

FiveM

Additional information

No response

mcNuggets1 avatar Jul 23 '24 08:07 mcNuggets1

Player 1 sees this:

https://i.imgur.com/POsmhQ3.png

Player 2 sees this:

https://i.imgur.com/m7339ox.jpeg

NetworkCreateSyncronisedScene continues to not properly work and it's the only animation function that half way works somewhat.

mcNuggets1 avatar Jul 30 '24 09:07 mcNuggets1