Skip to Content
Game guides

A FiveM and RedM site from scratch

From an installed Flute to a FiveM or RedM site that knows players by their Rockstar license, bans on the server and sells items, vehicles, jobs and ACE groups through Tebex.

By the end you will have a FiveM or RedM site with the live player count, bans, death statistics and a shop: a player pays on Tebex for a lockpick kit or VIP for 30 days, and the site puts the item into the inventory and grants the ACE group on the server by itself. The site balance is not used on these servers: the Cfx platform license requires it. The path below uses FiveM with Qbox and ox_inventory; the same resource works on RedM.

What you need

  • An installed Flute and a session as the owner, see installation.
  • A connected Flute key: without it the marketplace installs no modules, see Flute key.
  • An FXServer that runs resources with node_version '22'. Deaths and damage need OneSync and FXServer 37655 or newer.
  • A framework for items, money and jobs: Qbox, QBCore, ESX, ND Core, VORP or RSG. Vehicles are given only on Qbox with qbx_vehicles.
  • A Tebex webstore, and the PLA read.
  • A sign-in method for the site, for example Discord, see Sign-in methods.

The installer has no FiveM or RedM template. If you picked "Universal", the site has draft pages "Home", "Rules", "Servers" and "Contacts" without module blocks. The blocks arrive in The home page in Studio.

The server and the resource

The FluteFiveMConnect resource runs on the Node built into FXServer and calls the site over HTTPS: it needs no npm packages and no open ports. Install the FiveMKit module first: with it the site knows players by their Rockstar license.

Install FiveMKit

Open AdminExtensionsModules and click "Install" on FiveMKit. The module has no admin section of its own; the "Community setup" list gains the "Connect your FiveM or RedM server to the site" step.

Add the server

Open AdminServers and click "Add server". At the "Game" step pick GTA 5 for FiveM, or RedM, and put the IP and port into "Server address", for example 203.0.113.10:30120. Click "Check connection", then "Save server". Details are in Connect a game server.

Install the resource

Open the server, go to the "Plugins" tab and expand "How to install GameLink". Download flute-fivem-fxserver-<VERSION>.zip, unpack it into resources/ so that the folder is named FluteFiveMConnect, and add to server.cfg:

server.cfg
ensure FluteFiveMConnect
add_ace resource.FluteFiveMConnect command allow

Without the add_ace line the resource grants no ACE groups and runs no console commands. Restart the server.

The Plugins tab with the How to install GameLink instructions

Connect the server to the site

Click "Issue token" and run the command from the window in the server console or over RCON. It is refused from the game, even for an admin.

flute_setup https://<YOUR_DOMAIN> <SERVER_TOKEN>

The console answers Saved. Connecting..., then Connected to https://<YOUR_DOMAIN> (server #3). The status on the "Plugins" tab turns to "Connected".

On the site open Profile → Settings → Linked accounts and click "Get code". In the game type /link CODE; the resource answers "Almost there. Confirm the link on the site". Confirm the link in your profile. Without a linked license nobody can buy: the server uses it to know who gets the purchase.

The console and the txAdmin live console show the typed line together with the token. If someone else reads their logs, set the address and token in server.cfg with set flute_url and set flute_token, as described on the FiveM and RedM page.

The 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 FiveMKit the site never charges the balance on these servers, so without the Tebex module nothing can be sold for them at all. Site coins and balance top-ups are never given on these servers.

Modules

ModuleWhat it adds to a FiveM site
FiveMKitplayers by Rockstar license, the "FiveM item", "FiveM vehicle" and "FiveM job" rewards
Tebexpayment for products on Tebex, a log of payments, refunds and disputes
Shopproducts sold through Tebex
Rewardsdelivery of rewards to the server and the log of every grant. Tebex, Shop and GiveCore require it
Monitoringa servers page with the live player count and the "Servers" block
Sentinelbans, chat and voice blocks, the public /bans list
Statsdeaths, damage and the /stats leaderboard
GiveCoreACE groups with a term

Install them from AdminExtensionsModules with "Install"; the admin panel offers the dependencies itself. Dependencies and ionCube are covered in Installing modules. Later you can add Reports: the resource sends the site the reports players file with /report in EasyAdmin.

Tebex

Set the store token

In Tebex open Integrations → Webstore and copy the public token. Paste it into "Webstore public token" on AdminTebexSettings.

Connect the webhook

On AdminTebexOverview, copy the "Tebex webhook address". In Tebex open Developers → Webhooks → Endpoints, add this address and paste the secret into "Webhook secret". Send a test request from Tebex: in the "Setup" list the "Webhook" item changes to "The Tebex test request arrived".

The Tebex overview with the Setup list and the webhook address

Shop and delivery

The Tebex package sets the price, and the product on the site decides what to give. Below are a kit of 5 lockpicks and VIP for 30 days. The buyer always pays the package price; the product's price on the site is never shown to them.

Create a package in Tebex

Create the one-off package "Lockpick kit" in Tebex, with no commands. A command left in a package gives the player the purchase twice, once from Tebex and once from the site.

Pull the packages into the shop

Open AdminShopProducts and click "Pull from Tebex". Every package without a product becomes a product that is switched off, with its name, picture and price.

Fill in the lockpick kit

Open the product and, in "What the buyer gets", pick "FiveM item": "Item" lockpick, "Amount" 5. Turn on "On sale" and save. A vehicle is given by "FiveM vehicle" with adder as the "Vehicle model", a job by "FiveM job" with police as the "Job" and a "Grade".

The FiveM item reward in a product card

Create a second one-off package, "VIP for 30 days", in Tebex. Open AdminPrivileges, create the VIP privilege with the vip group in "What the player gets" and click "Sell in the shop". The new product already has a 30-day row: fill in its "Price", since a row without one is not saved. The buyer never sees it, so 0 works too. In "Where it works", pick "The buyer picks" and tick the FiveM server: without it the Tebex package will not link to the product. Turn on "On sale" and save. Then click "Pick a package" in the "Payment via Tebex" block and choose "VIP for 30 days". On the server the group becomes the ACE principal group.vip.

The Payment via Tebex block in a product card

Give the product to yourself

Test the delivery without paying: open your account in AdminPlayers, choose "Give a product", then "Product and term" and "Server". Orders placed by hand always reach these servers.

The buyer sees the "Pay on Tebex · amount" button on the product, signs in with Cfx.re and pays on the Tebex page. Once Tebex sends its notice, the site delivers the product and the payment shows up in AdminTebexPayments. Delivery waits until the player joins and loads a character. With a full inventory the player sees "Your delivery doesn't fit in your inventory. Free up some space and it will arrive by itself."

Besides Tebex purchases and orders placed by hand, these servers get only rewards from the sources ticked in "What else may be given on these servers" on the Tebex "Settings" tab. By default these are "By hand", "Voting", "Daily bonus", "Achievements" and "Subscription tasks". A privilege granted in GiveCore without a purchase reaches the server only once you add "Granted by hand" there.

Punishments

A player is banned from their card in AdminPlayers: the "Punishments" tab, the "Punish" button. The resource checks the ban on connect against both of the player's licenses, and reports txAdmin bans and unbans to the site by itself. A chat block works with the standard chat resource, a voice block with pma-voice and the built-in Mumble voice.

Statistics

There is no statistics source to set up. The resource sends every death with the weapon and the killer, and a kill counts only when both clients report it: the victim and the attacker. Headshots are known only in FiveM.

The home page in Studio

There is no FiveM or RedM template, so module blocks go on the pages by hand.

Open the home page in Studio

Open Studio from AdminSite design and go to the "Home" page.

Add module blocks

Add "Servers", "Shop: products", "Latest punishments" and "Best players". Adding and setting up a block is covered in Studio blocks.

Publish

Click "Publish", as described in Studio. Colours and fonts are set in the site style.

Check

By now the "Community setup" list on the admin home page ticks "Add a game server", "Link the server to the site", "Connect your FiveM or RedM server to the site", "Turn on a login provider" and "Style the site in Studio", see first steps. "Connect payments" is about payment providers for the balance, and a FiveM site does not need it. The rest is checked in the game and on the site, with the account you linked.

  • flute_status in the console shows the last sync without an error, and the Actions line has fivem.item.give.
  • The "Setup" list on the Tebex "Overview" tab has "Store token", "Webhook", "Products" and "FiveM or RedM server" done.
  • /flute in the game opens the site menu in an NUI window.
  • The lockpicks from the test order are in the character's inventory.
  • The home page shows the server with its player count, and /bans shows the test ban.

If something does not add up, start with the troubleshooting section of the FiveM and RedM page.

More

On this page