Install the LonexOne FiveM resource
Claim the free resource through Tebex, download it from Keymaster, add it to your server with screenshot-basic and the optional camera prop, and start it.
The LonexOne FiveM resource connects your game server to your community. With it, units go on duty in game, positions show on the CAD's live map, dispatchers send calls straight to a player's GPS, players call 911, and staff use the Staff Panel in game.
The resource is free with LonexOne. It comes through the LonexLabs Tebex store, so it lands in your Cfx.re account's Keymaster like any other paid script, but checkout costs nothing.
This article covers getting the resource and adding it to your server. Once it's installed, connect your game server with a server key.
Before you start#
- You need to be the owner, or have a role with one of these permissions: Run the status page: game servers, incidents and maintenance mode, Edit the community site: pages, navigation and branding or Set up the CAD: call types, statuses, penal code, designs and AOP.
- Most of what the resource does needs the CAD. Install it first from Install modules. The Staff Panel and Cameras also work through the resource.
- Know which Cfx.re account owns your server's license key. The resource only runs on servers whose license key belongs to the account that claims it.
Claim the resource#
- Open your control panel and click Status & servers in the left sidebar.
- Click the Game resource tab.
- Under Get the FiveM resource, click Claim it on Tebex.
- Tebex opens. Sign in with the Cfx.re account that owns your server's license key.
- Finish checkout. The total comes to nothing and you won't be asked to pay.
- You're sent back to the Game resource tab. It can take a minute for Tebex to tell us, so refresh the page shortly.
Once it's claimed, the box says which Cfx.re account claimed it and when.
If checkout shows a price, go back to the Game resource tab. It shows a code to enter at checkout. The code works once, for 7 days. If you leave and come back, the button says Continue claiming on Tebex.
Each community claims the resource once. Updates appear in Keymaster by themselves.
Download it and add it to your server#
- Go to Keymaster and sign in with the same Cfx.re account.
- Open Granted assets and download the LonexOne resource.
- Put the
lonexonefolder in your server'sresourcesfolder. - If you want a proper speed camera model for Cameras, also put the
lonexone_camera_propfolder inresources. Without it, cameras use the game's CCTV pole. - If you want a postal map, also put the
[lonexone_postalmaps]folder inresources. It holds every postal map, and LonexOne only starts the one you pick under HUD in Mechanics. See Set up the HUD.
Add screenshot-basic for photos#
The photo commands (/photo, /headshot and /mugshot) need the screenshot-basic resource. If you want them, add screenshot-basic to your resources folder too. Everything else works without it.
Turn on OneSync#
OneSync is recommended. With it, the server checks where players really are, instead of trusting what each player's game reports. Cameras need it, because the server checks that a car really passed the camera.
Add the lines to server.cfg#
Add these lines to your server.cfg, below the resources they rely on:
ensure screenshot-basic
ensure lonexone
ensure lonexone_camera_prop
Leave out screenshot-basic or lonexone_camera_prop if you're not using them.
If you use Game Permissions, also add these four lines, so LonexOne can give players their in-game permissions:
add_ace resource.lonexone command.add_ace allow
add_ace resource.lonexone command.remove_ace allow
add_ace resource.lonexone command.add_principal allow
add_ace resource.lonexone command.remove_principal allow
Don't add [lonexone_postalmaps] or the maps inside it to server.cfg. LonexOne starts the postal map you picked on the website and stops the others.
The resource also needs your server key to know which community it belongs to. That's the next step: Connect your game server.
For everything else to set up on the website and the server, work through the game server setup checklist.
What players need#
Players are matched to your community by their Discord account. Each player needs to:
- Have Discord linked in FiveM. FiveM picks it up when the Discord desktop app is running before FiveM starts.
- Use the same Discord account they sign in to your community's website with.
- Have signed in to your community's website at least once, so they're a member.
Without that, the resource tells them Link Discord to FiveM to use the CAD or that their Discord isn't linked to your community. Players without Discord can still call 911 if you allow it.
Something not working?#
Get the FiveM resource says claiming it here isn't open right now. There's no Claim it on Tebex button while claiming is closed. Message us in the LonexLabs Discord and we'll send the resource to your Cfx.re account.
It says "Tebex didn't accept the claim. Try again in a minute, or contact LonexLabs support." Tebex had a problem starting the claim. Wait a minute and click Claim it on Tebex again.
It says "Tebex didn't open the checkout. Start the claim again." Click Claim it on Tebex again.
It says "Your community has to be active to claim the resource." Your community is suspended. See When an invoice isn't paid.
I claimed it with the wrong Cfx.re account. Move it to the right account in Keymaster with Transfer, or message us in the LonexLabs Discord to reset your claim.
The resource won't start on my server. It only runs on servers whose license key belongs to the Cfx.re account that claimed it. Check which account your server's license key is on in Keymaster.
The console says "screenshot-basic is not running, so /photo will not work."
Add screenshot-basic to your server and ensure screenshot-basic to server.cfg, then restart. If you don't want photos, you can ignore this.
The console says "The postal map picked on the website needs the [lonexone_postalmaps] folder."
Copy the [lonexone_postalmaps] folder from the resource download into resources, next to lonexone, then restart the server.
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.