citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.48k stars 2.06k forks source link

ClearPedTasksImmediately looks different clientside as for other player #2684

Open mcNuggets1 opened 1 month ago

mcNuggets1 commented 1 month ago

What happened?

For the client, the correct behaviour happens. The player get's put into the standing upright position and is able to perform any task from then on.

But for other players, thats a different story. If for some reason the cleared player is slowly getting up instead of forced into standing upright.

This produces a lot of issues down the line and animation quirks. It's a desync issues that should get adressed imo.

Local: grafik

For other player: HMxJzFd player is within the standing up animation, while the client is in reality already in the desired anim.

Expected result

No desync

Reproduction steps

local playerPed = PlayerPedId() ClearPedTasksImmediately(playerPed) TaskPlayAnim(playerPed, "youranimdict", "youranim", 4.0, 2.0, -1, 1 + 131072 + 262144, 0.0, false, false, false)

-- while ragdolled with SetPedToRagdoll or falling etc. Just obstructed in any way while running the code.

Importancy

Slight inconvenience

Area(s)

FiveM, FXServer

Specific version(s)

FiveM

Additional information

No response

matthias18771 commented 1 month ago

Has this ever worked properly or did this start occuring recently? Could be associated with https://github.com/citizenfx/fivem/commit/eb9530e53ae844e68b7d335a2b380ba2fc0d29fe

mcNuggets1 commented 1 month ago

I am been working on this system for months. It was always like this the time working on it.