FiveM (Server Wrapper)

The Tebex server wrapper for FiveM Servers makes it easier to give players rewards and perks and simplifies the setup of your Tebex Store.

After setting up packages on your Tebex Store and within the wrapper itself, all you need to do is get your players to run /redeem [Transaction ID] and the wrapper will give the player in question their purchase(s).

Tebex Transaction IDs start with tbx- and look something like tbx-12345678-91011. Customers can find their transaction IDs on the payment complete page, as well as within their payment confirmation emails.

Installation Video Guide

Here’s a video guide from our very own Tebex Academy:

Installation Steps

Before you start, you'll need to setup your FiveM server and link it to your Tebex Store. There's a guide to doing this here.

You can click any of the images below to see a full-size preview.

  1. Pop the script in your resources directory. You may need to remove '-main' from the end of the folder name if this is present. The folder within your resources directory should be called 'nass_serverstore'.

  2. Import the codes.sql file to your database.

  3. Add ‘ensure nass_serverstore’ in your server.cfg

  4. Add the game server command below to each package you’d like to set up with the wrapper: purchase_package_tebex {"transid":"{transaction}", "packagename":"{packageName}"} Do not change the variables on this command, use it exactly as shown above. You’ll need to add it as a command that executes ‘When the package is purchased’. Additionally, press the ‘Settings’ icon next to the command and set the Require Player to be Online option to ‘Execute the command even if the player is offline’.

  5. Press ‘Update’ at the bottom of the Edit Package page to confirm the changes made.

  6. Setup your packages within the wrapper itself - you can do this within the config.lua inside the wrapper’s script folder on your server. If you need assistance setting this up, please check our support video above from 5:10 onwards.

And that's it!

All you need to do is get your players to run /redeem [Transaction ID] on your server when they've made their purchase.

Last updated