r_store Tebex Integration
Sell r_store credits on Tebex and deliver them automatically: create the license variable, attach it to a package and add the game server command.
Sell credit packages on your Tebex store and they arrive in-game on their own, whether the buyer is online or not. Your Tebex store has to be connected to your server (Tebex → Game Servers).
How it works for the player
Copy the license
The player types /storelicense in-game. It copies their license.
Buy credits
They paste the license at checkout on your Tebex store.
Done
The credits are on their account.
Setup
Create the License variable
Tebex → Variables → Create Variable:
- Identifier:
License - Description:
Use command: /storelicense in game to get your license - Type:
Text - Validation: Letters and Numbers, no min or max length
Add it to your credit package
Open the package → Variables tab → pick the {license} variable.
Add the delivery command
Add Deliverable → Game Server Commands, pick your server, trigger When the package is purchased:
r_store:giveCredits 1000 {license}1000 is how many credits the package gives. A 5,000 credit package uses
r_store:giveCredits 5000 {license}.
Get credits button
Set R.TebexUrl in config.lua to your Tebex store address. The store then shows a + button
next to the balance, and Buy turns into Get credits when a player can't afford a product. Both
open your Tebex store in the player's browser.
Troubleshooting
Tebex Game Server Commands
Tebex's own setup guide