Skip to Content
Game plugins

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.

PlatformArchiveSetup commandSite module
FXServer: FiveM (GTA 5) and RedMflute-fivem-fxserver-<VERSION>.zipflute_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 gameWhat the site needs
linking the Rockstar license to an accountthe FiveMKit module
sign-in link, site menu, online playersthe engine
items, vehicles and jobs as store rewardsthe FiveMKit module and a Rewards-based module (Shop and others)
taking paymentthe Tebex module
bans, chat and voice blocksthe Sentinel module
deaths, damage, suicidesthe Stats module
EasyAdmin /report reportsthe Reports module
ACE groups and privilegesthe GiveCore module

Site balance is not accepted on FiveM and RedM

The Cfx platform license forbids selling in-game currency for real money and taking payment through anything but Tebex. With the FiveMKit module the site therefore never charges the balance on FiveM and RedM servers, and sales go through the Tebex module only. Read the PLA before you sell anything.

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

server.cfg
ensure FluteFiveMConnect
add_ace resource.FluteFiveMConnect command allow

The 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>.

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.

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.

server.cfg
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

CommandWhoWhat it does
flute_setup <address> <token>server console, RCONsaves the address and token, connects to the site
flute_statusserver console, RCONsite address, last sync and error, integrations, available actions
flute_syncserver console, RCONsync now
/link CODEany playerlinks the Rockstar license to a site account
/loginany playerone-time sign-in link for the site
/fluteany playersite menu
/settingsany playersettings 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.

ConvarDefaultWhat it changes
flute_url, flute_tokenfrom flute_setupsite address and server token
flute_allow_rawfalsetrue lets the site run console commands
flute_raw_blacklistsee belowcomma-separated commands the site will never run
flute_allow_insecure_httpfalseallows an http:// site address, only for a site on the same machine
flute_protected_groupsadmin,superadmin,god,owner,rootgroups the site never grants
flute_allow_privileged_groupsfalsetrue lets the site grant protected groups too
flute_report_deathstruesends deaths and player.stats; read once when the resource starts
flute_localeenlanguage of messages and the menu: en, ru, uk
flute_cmd_link, flute_cmd_login, flute_cmd_menu, flute_cmd_settingslink, login, flute, settingsnames 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.

MessageWhat 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

Further reading

On this page