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.57k stars 2.11k forks source link

Player spawned at Michael (Player Zero) Sync Problem #2802

Open timthebest opened 1 month ago

timthebest commented 1 month ago

What happened?

Issues: I connected to a FiveM server, but the server didn’t properly load my character skin. Other players see me as the default character Michael (Player Zero), while I can see myself with my custom skin. This issue seems to occur during the connection process to the server.

Problem Details: When I join the server, my client appears to load my correct character skin and game data as expected. On my screen, everything looks fine—I see my custom character, I can move around, and interact with the environment normally. From my perspective, there are no apparent issues, and I don’t immediately realize something is wrong. However, other players report that I appear as Michael (Player Zero) to them, and my movements are not properly synced with the server.

It seems that the server is not receiving or processing my actual position or character skin correctly. While everything looks fine on my client, the server continues to see me as Michael and keeps me in the initial spawn location. This results in a desynchronization issue, where other players cannot properly see my actions.

One additional clue pointing to this desync is that vehicles in which I am sitting sometimes despawn automatically, as the server thinks I'm too far away, even though I’m still within the proper range. This further confirms that the server is not correctly syncing my actual position with my client.

Initial Troubleshooting Attempts:

I have already cleared my FiveM cache and ensured that all mods and add-ons are working correctly. My FiveM client is up to date, and there are no other visible issues on my end. Potential Causes:

This may be due to a server-client synchronization issue, where some data packets are not fully transmitted, causing the server to fail to update my character skin and position. Alternatively, it could be an error with the spawn manager or other server-side scripts responsible for loading player characters.

Expected result

  1. My character should have appeared in my selected skin, not as Michael (Player Zero). 2. Other players should have seen my correct character skin and position. 3. My position and actions should have been fully synchronized with the server so that there is no desync or disconnect between what I see and what other players see. 4. The server should recognize my actual location and prevent the despawning of vehicles or other objects in my proximity.

Reproduction steps

Expected result: Upon connecting to the FiveM server, my custom character skin should have been correctly loaded and displayed for both me and other players. The server should have synchronized my character’s appearance and position with all players, allowing everyone to see me in my custom skin and with my movements properly synced in real-time.

What should've happened instead?

  1. My character should have appeared in my selected skin, not as Michael (Player Zero).
  2. Other players should have seen my correct character skin and position.
  3. My position and actions should have been fully synchronized with the server so that there is no desync or disconnect between what I see and what other players see.
  4. The server should recognize my actual location and prevent the despawning of vehicles or other objects in my proximity.

Importancy

Unknown

Area(s)

FiveM, OneSync

Specific version(s)

FiveM Server 9875 Windows

Additional information

No response

d22tny commented 1 month ago

This seems like a script problem. You should discuss this with the server owner of the server you're facing this issue.

poco8537 commented 2 weeks ago

Our server is experiencing a similar issue. Have you resolved it?