Fix the FiveM resource not connecting
What each LonexOne message in your server console means, why the server shows Not connected yet, and how to fix players who can't use the CAD in game.
When the resource starts, it checks in with LonexOne and prints the result in your server console. Almost every connection problem shows up there, so that's the first place to look. This article lists what each message means and how to fix it, then covers problems players have in game.
All the resource's console messages start with [lonexone].
Check the console#
- Restart the resource, or the whole server.
- Look in the server console for lines starting with [lonexone].
When everything is right, you'll see Connected to LonexOne: followed by your community and server name, for example Connected to LonexOne: Blackwater RP (Main server).
Console messages#
| Message | What it means and what to do |
|---|---|
| No API key set. Add this line to server.cfg and restart | There's no set lonexone_key line, or it's below ensure lonexone. Add it above, then restart. Your key is made on the Servers tab of Status & servers in your control panel, under the server's Game connection. |
| LonexOne rejected the key in lonexone_key. Check it in the LonexOne panel under Status & servers. | The key is wrong, has a typo, or was replaced or revoked. Make a new key and update server.cfg. |
| This community is suspended on LonexOne, so its game servers can't connect. | Game servers stop working while a community is suspended. See When an invoice isn't paid. |
| This community isn't active on LonexOne yet, so its game servers can't connect. | The community hasn't finished setting up. The owner can finish it in the control panel. |
| Could not connect to LonexOne: Could not reach LonexOne (0) | Your server couldn't reach LonexOne at all. Check the server has internet access and that a firewall isn't blocking outgoing requests. |
| Could not connect to LonexOne: LonexOne did not respond in time (0) | The request took longer than 10 seconds. Restart the resource and try again. |
| LonexOne is having problems. Try again shortly | Something went wrong on our side. Try again in a few minutes, and message us in the LonexLabs Discord if it keeps happening. |
| Too many requests. Try again shortly | Your server sent too many requests in a minute. This usually sorts itself out. |
| The CAD is switched off for this community, so the CAD commands do nothing. Switch it on in the LonexOne panel under Install modules. | The resource connected, but the CAD module isn't installed. Install it from Install modules if you want the CAD in game. Everything else still works. |
| Sync failed: ... | The regular check-in failed. The rest of the message says why. It's printed at most once a minute while it keeps failing. |
| Could not load the config from LonexOne: ... | The resource couldn't load your settings from the Game resource tab. It keeps using the last settings it had. |
| screenshot-basic is not running, so /photo will not work. | Add screenshot-basic if you want photos. Otherwise, ignore it. |
The server says Not connected yet#
On the Servers tab, each server shows Last heard from or Not connected yet under Game connection.
- The server isn't running the resource. The resource checks in at least once a minute while it's running, even with nobody on. Check the console for Connected to LonexOne.
- The key was just changed. Making a new key resets the tag to Not connected yet until the server checks in with the new key.
- The community is suspended. Game servers can't connect until it's active again.
- The key is wrong. Check the console for the messages above.
Turn on debug logging#
To see every request the resource sends and every reply, add this to server.cfg and restart:
set lonexone_debug "true"
Remove it again when you're done, because it prints a lot. Your server key isn't printed.
Problems players have in game#
They see "Link Discord to FiveM to use the CAD". FiveM can't see their Discord account. They need the Discord desktop app open before they start FiveM.
They see "Your Discord isn't linked to [community] on LonexOne. Sign in on the community website with Discord first." FiveM sees a Discord account, but it isn't a member of your community. They should sign in to your community's website with the same Discord account they use in FiveM.
They see "You aren't in any department in the CAD yet." in the duty menu. They're not on the roster of a police, fire or EMS department with a status that can go on duty. Check the roster.
They see "That server key isn't valid. Make a new one in the LonexOne panel under Status & servers."
The server's key has stopped working. Make a new one and update server.cfg.
They see "LonexOne is not set up on this server".
The server has no key. Add set lonexone_key to server.cfg and restart.
Units don't move on the live map. Positions are sent while the unit is on duty and in game. Make sure they went on duty with the Discord account they use in game. OneSync helps: without it, positions come from each player's own game.
Changes on the Game resource tab haven't reached the server. Settings reach your servers within a few seconds while someone is on. A new panic or tablet key only takes effect after the resource restarts.
Still stuck?#
Message us in the LonexLabs Discord with your community name, the server name, and the [lonexone] lines from your console. Turn on debug logging first if you can.
See also
Can't find what you need?
Open a ticket in our Discord and someone from the team will help. Found a bug, or missing a feature? Tell us on the feedback board.