Tebex Integration
Integration for Tebex game server
Settting up Tebex integration is very useful/helpful. This will allow players to purchase a package from your tebex and redeem it through the coin shop using the tebex id.
For example i have a package named "100 Coins" and i purchase it, go in game and redeem the tebex id i can recieve 100 coins! Heres how to set it up:
First things first we need to connect Tebex to your FiveM server, to do so you can follow the video provided from Tebex themselves: https://www.youtube.com/watch?v=it-eiJDwV5E
Now that you have set up your game server on Tebex, heres how to set up the game server command on your package: Command:
bs:cs:redeem "id = {transaction}, package = {packageName}"
Now that you have set the command up to your package, lets link the package to the script.
First head into
data/integration.luaand at the top you will find the following:Tebex = { ['Test Package'] = 5000, }You need to match the package name as the text inside the box like so: (the number is the amount of coins they will recieve)

If i wanted to add another package called "2000 Coins" i would do the exact same and add create a new line in the Tebex table like so:

Now that you have set up your packages, you can test by setting your package price to 0 on Tebex and purchasing it and then trying to redeem it. The following should pop up in your live console (if debug is enabled):

To redeem use the tebex transaction id given by Tebex sent via emails and head into the coin shop to the redeem page!
Last updated