Fix "Server->Client Connection Timed Out" in FiveM
FiveM's "Server->client connection timed out" drop explained from the source code. Read Last seen and Pending commands, find the resource, stop the drops.

- Applies to
- FiveM Legacy FXServer and client (public citizenfx/fivem source of November 17, 2026, the latest commit on December 3, 2026) on Windows and Linux; txAdmin v8.1.2 (October 23, 2026); every framework or none; FiveM for GTAV Enhanced timeout variables from the Server Commands reference
- Last verified
On this page
- Direct Answer
- What “Server->client connection timed out” means
- How to read “Pending commands” and the command list
- How to read “Last seen N msec ago”
- “Timed out after 60 seconds” is a OneSync drop
- What the player sees: “Timed out” and “Disconnected by server”
- How txAdmin counts these drops
- How to fix “Server->client connection timed out”
- Does this apply to FiveM for GTAV Enhanced?
- Troubleshooting
- Next Steps
Direct Answer
“Server->client connection timed out” means FXServer dropped a player whose game stopped answering. The message ends in one of two ways. “Last seen N msec ago” means no packet from that player reached the server for a while: look at the player’s connection, a frozen game, or your server’s network. “Pending commands: N” means the player was still sending, but data your server sent was not acknowledged for 30 seconds; the command list names the largest waiting packets, such as a script event or a state bag update. Find the resource behind that name, then make it send less data or use latent events.
What “Server->client connection timed out” means
FXServer prints this message itself, so it reads the same on every server, whatever framework or game mode it runs: Qbox, ESX, QBCore, or a racing, PvP or zombie server with no framework at all. The quotes in this section come from the public FiveM source at the commit of November 17, 2026, which was still the latest commit on December 3, 2026.
On every server frame, FXServer checks each connected player. Client.cpp counts a player as dead when one of these is true:
- The network connection is gone. The code’s comment calls this the “new policy (2021-01-17): if the ENet peer has vanished, we shall be dead”. A peer whose ping reads -1 counts the same way.
- No packet arrived for 60 seconds.
CLIENT_DEAD_TIMEOUTis 60 seconds in release builds. Every packet the server receives from the player resets this timer. - A player who has not finished connecting is measured against
CLIENT_VERY_DEAD_TIMEOUT, 120 seconds, unless the server has already marked them as allowed to time out sooner.
The network layer, ENet, keeps a second timer. When a player’s connection is accepted, GameServerNet.ENet.cpp sets it with the comment “all-but-disable the backoff-based timeout, and set the hard timeout to 30 seconds”. The comment on ENet’s enet_peer_timeout function explains that hard limit: if reliable packets “have been sent but not acknowledged for a certain maximum time period, the peer will be disconnected regardless of the current timeout limit value.” The FiveM client sets the same 30-second limit on its side, commented “equivalent to server-side check!”.
When the player counts as dead, GameServer.cpp drops them with one of two messages:
Server->client connection timed out. Pending commands: %d.\nCommand list:\n%s
Server->client connection timed out. Last seen %d msec ago.
The Pending commands version is used only when the server last heard from the player less than 1500 ms before the drop and ENet recorded packets that were still unacknowledged. Every other case gets the Last seen version.
| Message | Drop reason number | When it is used |
|---|---|---|
Server->client connection timed out. Last seen %d msec ago. | 5 (CLIENT_CONNECTION_TIMED_OUT) | No recent packet from the player, or the connection vanished without a list of waiting packets |
Server->client connection timed out. Pending commands: %d. | 6 (CLIENT_CONNECTION_TIMED_OUT_WITH_PENDING_COMMANDS) | The player was heard from less than 1500 ms ago, but data sent to them was never acknowledged |
Timed out after 60 seconds (1, %d, %lld) or (2) | 12 (ONE_SYNC_TOO_MANY_MISSED_FRAMES) | OneSync could not resend game state the player reported missing |
The numbers are the clientDropReason values that the playerDropped event passes to scripts. ClientDropReasons.h describes them as “server -> client connection timed out”, “server -> client connection timed out with pending commands” and “too many missed frames in OneSync”.
How to read “Pending commands” and the command list
When ENet gives up on a player, FXServer walks the list of reliable commands that were sent but never acknowledged. Each one adds 1 to the “Pending commands” count. The command list under it has one entry per packet, even when several of those commands carry the same packet, so the count can be higher than the number of lines. It shows at most 7 packets, sorted by size with the largest first, one per line in this form:
%s (%d B, %d msec ago)
The first value is a name, then the packet size in bytes, then how long ago it was sent. The name depends on the packet:
- A script event (packet type
msgNetEvent, whatTriggerClientEventsends) shows the event name. - A known engine packet shows its type name.
msgStateBagis one of them: the source describes that packet as a “Request from the client<->server for modifying a state bag.” - Anything else shows an 8-digit hexadecimal hash (
%08x), because the server has no name for it.
ENet starts this disconnect when a reliable packet has waited 30 seconds for its acknowledgement (the timeoutMaximum that FXServer set to 30000 ms), so the list is a snapshot of what the server was still trying to deliver at that moment: the player’s game kept sending, but did not confirm what the server sent. The Cfx.re docs describe this failure directly. Latent events should be used for large server-to-client data “as latent events do not block the clients entire network channel, unlike TriggerClientEvent”, and: “This is important for timeout functionality, as sending a large amount of data blocks the network for the client, and if blocked for too long, will result in the client timing out.”
This explains how many players can drop together. An event sent with -1 as the target goes to all connected players, so one oversized broadcast fills every player’s channel at once.
How to read “Last seen N msec ago”
N is the number of milliseconds since the server last received any packet from that player. A large value means the player went silent before the drop. Read it together with how many players dropped:
- One player, repeatedly. The server stopped hearing from that one game. txAdmin’s description of its Timeout category names the two usual suspects on the player’s side: “networking issues or client crash”.
- Many players at the same moment. The server stopped receiving from all of them at once, so look at the server: its network, its host, and its own network thread. ENet traffic is processed in the svNetwork thread’s tick, a step the source comments as “process game push”, and FXServer prints
network thread hitch warning: timer interval of %d millisecondswhen more than 150 ms pass between two of its ticks.
“Timed out after 60 seconds” is a OneSync drop
Timed out after 60 seconds comes from ServerGameState.cpp, the OneSync game state, and uses the drop resource name __cfx_internal:server_onesync. txAdmin’s source comments it as the “onesync timeout”. Despite the wording, the code does not run a 60-second timer at that point. A player’s game reports which state frames it is missing. If a reported frame is no longer among the frames the server keeps for that player, it drops them with Timed out after 60 seconds (1, %d, %lld): the first number is the span of missing frames, the second the milliseconds since the player’s last update. If the frame the player confirms is no longer kept, the reason is Timed out after 60 seconds (2).
What the player sees: “Timed out” and “Disconnected by server”
FXServer sends the drop reason to the player’s game. In NetLibrary.cpp, any reason that contains “timed out” gets the heading Timed out, a Timeout info line and a Reconnect link. If the game had not finished loading, the player instead sees the reason after “Disconnected by server:”, which is the text people search as “disconnected by server client connection timed out”.
The Timeout info line has the form game=%s, recv=%s, send=%s. Each part is computed from the player’s last 16 ticks of that kind and printed as %.2f ±%.2f ~%d: the average gap between ticks in milliseconds, the spread, and the time since the latest tick. game tracks the client’s network frames, recv the steps that received data and send the steps that sent it. A huge ~ value on game means the player’s game itself stopped running frames; normal game values with a large recv gap mean the frames kept running while data stopped arriving. Ask players for a screenshot of this line.
A different message, “Client -> server connection timed out. Please try again later.”, is shown when the player’s game decides on its own side that the connection to the server has timed out. That message comes from the client, not from a server drop.
How txAdmin counts these drops
txAdmin files drop reasons 5, 6 and 12 under the Timeout category, described as “Player connection timed out due to networking issues or client crash.” The Dashboard card Player drop cause (last 6h) shows the share of each category, and the Player Drops page (/insights/player-drops) shows them over time. Each drop also appears in Server Log as disconnected (<reason>), with the full message.
Some kicks look similar but are counted as Security, not Timeout: “Reliable network event overflow” and “Connection to CNL timed out”, among others. txAdmin describes that category as players kicked “due to suspect behavior such as sending too many commands or losing connection to the Cfx.re backend services.” The anticheat settings guide explains both: the network event rate limit and the CnL kick.
How to fix “Server->client connection timed out”
These steps apply to every FiveM Legacy server. The Enhanced differences follow below.
- Collect the full drop messages. Open Server Log in txAdmin and copy the
disconnected (...)lines for the drops, with their times. On a server without txAdmin, log drops from a server script. The docs’playerDroppedexample prints the reason, the resource and the drop reason number:
-- source is global here, don't add to function
AddEventHandler('playerDropped', function (reason, resourceName, clientDropReason)
print('Player ' .. GetPlayerName(source) .. ' dropped (Reason: ' .. reason .. ', Resource: ' .. resourceName .. ', Client Drop Reason: ' .. clientDropReason .. ')')
end)
- Sort the drops by variant and count. Note whether each one says Pending commands or Last seen, and whether one player drops or many at the same second. The two variants have different causes, as the sections above explain.
- For Pending commands, list the names. Write down every name in the command lists, with its size. A name that repeats across drops, with a large byte count, is your suspect. Search your
resourcesfolder for that event name to find the resource that triggers it. - Watch the traffic live with
neteventlog. In the client console (F8),neteventlog trueshows all network event traffic: “the direction of the event (e.g. Server -> Client), the event name, and the size of the data sent”.netgraph trueadds received and sent bytes per second. Both are developer commands. On FiveM Legacy, launch your own client with+set moo 31337to use them on any update channel, or run the client on the Beta or Latest update channel, which the docs warn “may be unstable”. On FiveM for GTAV Enhanced that argument was removed, and developer mode needssv_devMode trueon the server, which limits the server to 8 players; the reference says “Do not enable in production”, so use a test server there. - Make the resource send less, or send it as a latent event. If you maintain the code, the docs say
TriggerClientEventsuits smaller transactions and latent events suit “larger transactions (which contain more data, multiple KBs and above)”. A latent event takes a bytes-per-second rate as an extra argument; -1 or 0 applies the default of 25000:
TriggerLatentClientEvent("eventName", targetPlayer, bps, eventParam1, eventParam2)
The rate applies per player: with -1 as the target, “the server will be effectively sending bps * player_count bytes every second.” The docs also warn that rates around 10 million bytes per second “may lead connectivity and performance issues when large objects are sent.” For state bags, the docs note that “By default, state set from the server is replicated”, so a large value that a server resource sets travels to players’ games; keep replicated values small. If someone else wrote the resource, send them the drop message: it names their event, its size and its age.
6. For Last seen drops of many players, check the server. Look at the console for network thread hitch warning lines at the time of the drops, and at the svNetwork chart on the txAdmin Dashboard. The server thread hitch guide explains those warnings, and the DDoS protection guide covers traffic from outside.
7. For Last seen drops of one player, look at that player. Their Timeout info line shows whether their game froze or their connection stopped delivering data.
The message names an event, not a file type, so the same steps apply whatever the resource is: one of your own scripts, a framework resource, or a resource that came with an MLO or with addon vehicles.
Does this apply to FiveM for GTAV Enhanced?
The messages and limits above come from the public FiveM source. The Enhanced Cfx Server makes its timeouts configurable, with variables the Server Commands reference lists as “only available in FiveM for GTAV Enhanced”:
| Variable | Default | What the reference says |
|---|---|---|
sv_clientConnectedTimeoutMilliseconds | 120000 | “the time in milliseconds a connected client can stop sending packets before it is dropped” |
sv_clientConnectingTimeoutMilliseconds | 60000 | “the time in milliseconds a client has to finish connecting before it is dropped” |
sv_pingIntervalMilliseconds | 5000 | How often the client sends a keep-alive ping: “Lower values detect lost connections faster but increase bandwidth.” |
The public Client.cpp has no such variables and fixes the connected limit at 60 seconds. Neither the Enhanced docs page nor the Server Commands reference shows the exact drop text on Enhanced, so compare the message your Enhanced server prints with the forms above before relying on them. The advice on large events comes from the general events documentation and applies to both platforms.
Troubleshooting
“Pending commands” lists msgStateBag
The waiting packets were state bag updates rather than script events: a resource was setting replicated state, on players, entities or GlobalState, and the player’s game did not confirm those packets in time. Search your resources for the state they set from the server and reduce how much of it they replicate and how often.
The command list shows an 8-digit hex name instead of an event
An 8-digit hexadecimal name is printed when the packet is neither a script event nor a packet type the server has a name for. The size and age still tell you how much data was waiting. Compare the time of the drop with neteventlog output from a developer-mode client to see which events surrounded it.
The FiveM server keeps timing out every player at once
With Pending commands, look for one large event sent to all players (-1 as the target) just before the drop: it is in every player’s list. With Last seen, the server heard from nobody, so check the network thread hitch warnings, the host and any traffic filtering, as in step 6.
Only one player keeps timing out
If that player times out on several servers, look at their side first: their Timeout info line shows whether their game froze or their data stopped arriving, the two cases txAdmin’s Timeout category describes as “networking issues or client crash”. If they time out only on your server with Pending commands, the list shows what your server was sending them when it happened.
“Timed out after 60 seconds” on a OneSync server
This is the OneSync frame drop above, not the 60-second packet timer: the player’s game asked for state frames the server no longer held for them. txAdmin counts it in the same Timeout category, so compare when and for whom it happens on the Player Drops page with the other timeouts.
Players time out while joining, not in game
Join-time failures such as CURL error 28 and a stuck loading screen happen before the game session runs and have other causes. The CURL error guide covers timeouts while connecting, and the stuck loading screen guide covers players who hang at a loading stage.
Next Steps
- Read the server thread hitch warning guide if your console prints hitch warnings around the timeouts.
- Use the resmon and profiler guide to measure the resource you found in the command list.
- Check the DDoS protection guide if every player drops with Last seen during traffic spikes.
- Go through the CURL error guide for timeouts that happen before players reach the game.
Browse MLO & interior maps
MLO interiors and maps for FiveM servers: houses, mechanic shops, cafes, restaurants, shops and islands.
Official documentation and repository references
- citizenfx/fivem: GameServer.cpp (timeout drop messages)
- citizenfx/fivem: GameServerNet.ENet.cpp (30-second timeout, pending command list)
- citizenfx/fivem: NetLibrary.cpp (what the player sees)
- Cfx.re Docs: Triggering Events
- Cfx.re Docs: Server Commands
- Cfx.re Docs: Client Console Commands
- Cfx.re Docs: playerDropped
- txAdmin v8.1.2: classifyDropReason.ts (drop categories)
Related guides
FiveM Stuck on Loading Screen? Fix Each Loading Stage
FiveM stuck on loading screen? Read the stage your players hang at, from handshaking to preloading collisions, and run the server-side check for each one.
FiveM DDoS Protection and Proxy Setup Explained
FiveM DDoS protection from the Cfx docs: connect and server proxies, nginx and Cloudflare setup, sv_proxyIPRanges, ips.txt, and what a proxy cannot hide.
Fix FiveM CURL Error 56 and 28 Connection Failures
FiveM CURL error 56 or 28 when joining a server? Learn what each code means, how to read the full message, and the owner and player checks that fix it.
FiveM resmon and Profiler: Find the Resource Causing Lag
How to use FiveM resmon and the profiler: fix Access denied for command resmon, read every resmon column, record a server profile and open it in Chrome.
Server Thread Hitch Warning in FiveM: Meaning and Fix
The FiveM server thread hitch warning means svMain started a tick over 150 ms after the last. Get the sync and network limits and find the resource behind it.

