FiveM and RedM
The FluteFiveMConnect resource: installation, linking to the site, the Rockstar license, bans, ACE groups, item delivery and the in-game menu.
Your FiveM or RedM server is integrated with the site through the GameLink resource, which keeps the server and the site in sync. The site sees who is playing, delivers items, vehicles, jobs and groups, bans players and blocks chat.
| Platform | Archive | Setup command | Site module |
|---|---|---|---|
| FXServer: FiveM (GTA 5) and RedM | flute-fivem-fxserver-<VERSION>.zip | flute_setup <site address> <token> | FiveMKit, Tebex |
Releases are on GitHub. The server page in the admin panel also shows the latest build with a "Download" button. The same archive works for FiveM and RedM.
What you get
The resource calls the site on its own and reports the online players with their Rockstar license, the server name and version, and the game. The site answers with commands: kick, send a chat message, grant an ACE group, ban, give an item or a vehicle. Every command gets an answer and never runs twice, even after a restart.
| In game | What the site needs |
|---|---|
| linking the Rockstar license to an account | the FiveMKit module |
| sign-in link, site menu, online players | the engine |
| items, vehicles and jobs as store rewards | the FiveMKit module and a Rewards-based module (Shop and others) |
| taking payment | the Tebex module |
| bans, chat and voice blocks | the Sentinel module |
| deaths, damage, suicides | the Stats module |
EasyAdmin /report reports | the Reports module |
| ACE groups and privileges | the GiveCore module |
Site balance is not accepted on FiveM and RedM
Requirements
An FXServer build that runs resources with node_version '22'. The resource runs on the Node runtime that ships with FXServer, so it needs no npm packages and no open ports. Deaths and damage are reported only with OneSync on FXServer 37655 or newer. A framework is optional: money, items, vehicles and jobs show up when Qbox, QBCore, ESX, ND Core, VORP or RSG is running.
Items go through ox_inventory, qb-inventory, vorp_inventory, rsg-inventory or the ESX inventory. Vehicles work only on Qbox with qbx_vehicles. There is no bridge for vRP; use console commands there.
Install the resource
Unpack the archive into resources
Unpack flute-fivem-fxserver-<VERSION>.zip into the server's resources/ folder:
resources/
└── FluteFiveMConnect/
├── fxmanifest.lua
├── client/
├── server/
├── html/
└── locales/The folder must be called FluteFiveMConnect. If you rename it, change the name in the add_ace line below as well.
Add the resource to server.cfg
ensure FluteFiveMConnect
add_ace resource.FluteFiveMConnect command allowThe add_ace line lets the resource run console commands and grant ACE groups. Without it both are off.
Restart the server
The resource prints Not connected to a site yet. Run in the server console: flute_setup <site url> <server token>.
Link to the site
Issue a token
Open AdminServers, then your server and the "Plugins" tab. Click "Issue token" and copy the command from the window. This step is covered in detail in connecting a server.
Run the command in the server console
flute_setup https://<YOUR_DOMAIN> <SERVER_TOKEN>The command works only in the server console or over RCON; even an admin cannot run it from the game. The resource stores the address and token in its KVP storage and connects right away.
Check the link
The console should print:
Saved. Connecting...
Connected to https://<YOUR_DOMAIN> (server #3)On the "Plugins" tab the status changes to "Connected", and the plugin block shows the game, the players and the actions the resource can run right now. flute_status shows the state at any time, and flute_sync runs a sync immediately.
The server console and the txAdmin live console both show the typed line, token included. If someone else can read those logs, put the address and token into server.cfg instead. Values there win over flute_setup, and flute_setup then refuses to run.
set flute_url "https://<YOUR_DOMAIN>"
set flute_token "<SERVER_TOKEN>"Use set only. With sets or setr the token ends up in the server list and on players' machines.
The token itself never goes over the network. Each request carries an X-Flute-Key header with the key id and a signature, and the resource runs nothing from an answer the site did not sign. The game server clock must stay within 60 seconds of the site's.
Account linking
The site knows a player by the Rockstar license: license2 when the game sends it, otherwise license, 40 hex characters without a prefix. The resource also sends the SteamID64, the Cfx.re account number and the Discord id, so the site can merge one person's accounts.
The player gets a code on the site: Profile → Settings → Linked accounts → "Get code". In game they type /link CODE, the resource answers "Almost there. Confirm the link on the site", and the player confirms it in their profile.
/login sends a one-time sign-in link with a QR code. It is off by default: turn on "Allow signing in from the game" on the "Plugins" tab, in the "Security" section. Administrators and moderators never get such a link.
Bans and mutes
You need the Sentinel module. The resource keeps site bans in its own list and checks it on connect against both of the player's licenses. It also reports txAdmin bans and unbans to the site.
The chat block works with the standard chat resource, the voice block with the built-in Mumble voice (pma-voice and the default voice). Voice over TeamSpeak (SaltyChat, TokoVOIP) is not supported. If the server runs FiveM-BanSql, Sentinel can read bans straight from its database.
Statistics
You need the Stats module. The resource reports every death with the weapon, the killer, a headshot flag and a roadkill tag when a vehicle ran the player over. Damage dealt to other players and suicides go out once a minute and when a player leaves.
A kill counts only when both clients agree: the victim names the attacker, and the attacker reported a hit on the victim in the last 10 seconds. One modified client cannot claim someone else's kills. Headshots are read only in FiveM, and weapon names exist only for stock GTA V weapons. To stop sending deaths, set the convar flute_report_deaths false.
Reports
You need the Reports module. Reports players file with EasyAdmin's /report go to the site. The resource does not read EasyAdmin bans.
Groups and privileges
You need the GiveCore module. A group from the site becomes the ACE principal group.<name> for the player's license. The resource remembers the grant itself, restores it after a restart and removes it when it expires.
The site never grants admin, superadmin, god, owner or root, or any group that is allowed the command ACE. The list is set with the convar flute_protected_groups, and flute_allow_privileged_groups true lifts the restriction entirely.
With the Tebex module on the site, GiveCore privileges reach the server only when the "Granted by hand" source is ticked in its "What else may be given on these servers" setting.
Store and delivery
The FiveMKit module adds items, vehicles and jobs as rewards. Delivery waits until the player joins and loads a character: one license can hold several characters, and without the player online there is no telling which one should get it.
If the inventory is full, the player sees "Your delivery doesn't fit in your inventory. Free up some space and it will arrive by itself." and the command waits. Purchases are paid through the Tebex module.
In-game menu
/flute opens the site menu in an NUI window, and /settings opens the settings page directly. Arrow keys move the selection, Enter opens an item, Backspace goes back, Esc closes, and the mouse works too. What the menu shows is set on the site: AdminServersIn-game menu (In-game menu).
Monitoring
The site sees the online count and the map even without the resource: it queries dynamic.json, info.json and players.json on the game port, 30120 by default. If the server sits behind NAT or a firewall and does not answer queries, the resource reports the state itself.
Commands and permissions
| Command | Who | What it does |
|---|---|---|
flute_setup <address> <token> | server console, RCON | saves the address and token, connects to the site |
flute_status | server console, RCON | site address, last sync and error, integrations, available actions |
flute_sync | server console, RCON | sync now |
/link CODE | any player | links the Rockstar license to a site account |
/login | any player | one-time sign-in link for the site |
/flute | any player | site menu |
/settings | any player | settings page of the site menu |
If another resource already uses /link, /login, /flute or /settings, rename the command with the convar flute_cmd_link, flute_cmd_login, flute_cmd_menu or flute_cmd_settings.
Plugin config
Everything is a convar in server.cfg, set with set name value.
| Convar | Default | What it changes |
|---|---|---|
flute_url, flute_token | from flute_setup | site address and server token |
flute_allow_raw | false | true lets the site run console commands |
flute_raw_blacklist | see below | comma-separated commands the site will never run |
flute_allow_insecure_http | false | allows an http:// site address, only for a site on the same machine |
flute_protected_groups | admin,superadmin,god,owner,root | groups the site never grants |
flute_allow_privileged_groups | false | true lets the site grant protected groups too |
flute_report_deaths | true | sends deaths and player.stats; read once when the resource starts |
flute_locale | en | language of messages and the menu: en, ru, uk |
flute_cmd_link, flute_cmd_login, flute_cmd_menu, flute_cmd_settings | link, login, flute, settings | names of the player commands |
Troubleshooting
For any other message, use the error lookup.
Console commands and groups are off
server.cfg has no add_ace resource.FluteFiveMConnect command allow line, or the resource folder has a different name. Add the line with the real folder name and restart the server.
Connection failed: the signature was rejected: check the server clock (60 s tolerance)
The game server clock is more than a minute off the site's. Turn on time sync (NTP) on the server machine and run flute_sync.
Connection failed: the site did not accept the key
The token was reset or revoked on the site, or the site is older than this resource version. Issue a new token and run flute_setup again.
| Message | What to do |
|---|---|
The token must look like flute_srv_ followed by 48 hex characters. | the token was copied only in part; take the command from the token window again |
Not saved: http:// is refused: use https://, … | use an https:// site address |
flute_token is set in server.cfg: … | the token is set in server.cfg; change it there |
| "Signing in from the game is turned off on this server." | turn on "Allow signing in from the game" on the "Plugins" tab |
| "Your game didn't send a Rockstar license, so the site can't tell who you are." | the player should restart the game and join again |
| "The server can't confirm who you are, so account actions are off here." | the server runs with sv_lan true; the site does not trust licenses that Cfx has not checked |
Console commands from the site are off until you set flute_allow_raw true. Once they are on, the resource checks every part of a command (split on ; and line breaks) and refuses the whole command if a name matches a rule. A rule ending in * covers every command that starts with it.
The default list, replaced by flute_raw_blacklist: quit, exec, alias, unalias, vstr, +vstr, -vstr, wait, toggle, cmdlist, con_*, start, stop, ensure, restart, refresh, add_ace, add_principal, remove_*, add_unsafe_*, add_filesystem_permission, add_convar_permission, set, sets, setr, seta, rcon_*, sv_*, steam_webapikey, mysql_*, onesync*, endpoint_*, txa*, flute_*, run, crun, runcode, profiler, neteventlog.
Some rules always apply, even when your list leaves them out: alias, unalias, exec, vstr, bind, rcon, rcon_*, quit, run, crun, runcode, start, stop, ensure, restart, refresh, add_ace, add_principal, remove_*, add_unsafe_*, set, sets, setr, seta, flute_* and a few more. A command with anything outside printable ASCII is refused as well. For non-ASCII text, use site actions such as a player message: they bypass the console.
| Framework | Money accounts | Jobs |
|---|---|---|
| Qbox, QBCore | cash, bank and others | job and grade |
| ESX | money, bank, black_money | job and grade |
| ND Core | cash, bank | a group marked as a job, grade by weight |
| VORP | money, gold, rol | any name, as VORP's addJob command takes it |
| RSG | cash, bank, gold, bloodmoney | job and grade |
The resource can add money, but with the Tebex module the site never sends balance or in-game currency to these servers. RSG keeps cash and gold as inventory items, so the resource checks for room before a deposit.
txAdmin bans issued while the resource is stopped never reach the site, and site bans do not show in the txAdmin list. The chat block does not stop other resources' chat commands (/me, /ooc, the phone). The resource answers admin.reload and vip.reload with unsupported_action: it keeps ACE groups itself, so there is nothing to reload.