[Discussion] Syncing entity/player animations for new spawned players

From what Im aware of and have talked to people about it, one of the common issue or I should say lack of feature is that animations are not synced for the new player who join the server after the animation has been initiated.

Recently I encounceted such situation where the animation wasn’t synced for the new players who joined the server and it looked pretty odd for the new players to see other players standing and clipping though objects/entities. Im not sure if its even possible to sync animation for new players but if there’s something out there then any info would be very helpful.

What kind of animations are you talking about ?

Wouldn’t just loading dicts of those animations fix the issue?

Refering this image, screenshot on left is the result for player2 who has joined the server and the left screenshot is the result of the player1 on which animation was played before player2 joined the server. Loading anim dicts for player2 doesn’t seem to solve the issue. Only possible way to sync the animation is to play the animation again on player1 after player2 has joined.

Edit: Just to be more specific and clear, I’ve tried creating a synchronised scene and playing anim on all entities but it has same effect.

Anim dict: anim_casino_b@amb@casino@games@shared@player@
Anim name: sit_enter_left
These are the one which you can try but it has same effect as shown above for any anim I believe

Can you post a script to cause this so we can do some testing?

Also, maybe @Disquse can pick this up.

Yeah sure, here’s the debug resource which creates network sync scene. Resource requires build 2060 or higher.
sync_scene.rar (668 Bytes)

1 Like

Don’t have anybody to test with at this hour…
However, in the provided code the loop flag is false (line 15), have you tried toggling it?

Yes I have. Sadly it doesn’t have any effect.
Also you can just launch FiveM with -cl2 parameter to initiate second instance of FiveM and can join the server

Maybe @Disquse can help you with this.

حیدز استنم چی جوری برم بازی

Do you know the solution?