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.56k stars 2.1k forks source link

Client must be reset when disconnecting from a server in order to connect to another server #2465

Open alberttheprince opened 6 months ago

alberttheprince commented 6 months ago

What happened?

When disconnecting from a server, users will be stuck in "waiting for game to shutdown..." or unable to connect to other servers when exiting a server through the console. This requires closing the FiveM client to make sure you can connect to another server.

Expected result

You should be able to disconnect from a server, then immediately reconnect to another server

Reproduction steps

  1. Join a server
  2. Disconnect from the server (by quitting or through a server restart)
  3. Attempt to connect to another server

Importancy

There's a workaround

Area(s)

FiveM

Specific version(s)

FiveM

Additional information

No response

kchaney1508 commented 6 months ago

It seems like what's happening is your GTAV game or instance is closing, then rebooting as if you were opening FiveM again. You can watch this happen in real time by opening the client console. It doesn't get fully 'stuck', and if you wait ~30s (depending on how speedy your system is), it'll connect to the new server when it's good to go. Sometimes just running quit and rebooting the application might be faster.

operationairstrike commented 3 months ago

Is it possible to improve the speed of that process or is this caused by GTA itself.