💎
_bl4ck Docs
DISCORD
  • 🛠️SCRIPTS
    • 💎lb_vips
      • Installation
      • Configuration
      • Languages
      • Tebex Integration
      • Exports
        • Client
        • Server
    • 👨‍⚕️lb_revivenpc
      • Installation
      • Configuration
Powered by GitBook
On this page
  • SETTING UP
  • ADDITIONAL INFORMATION
  1. SCRIPTS
  2. lb_vips

Tebex Integration

Tebex configuration and usage

PreviousLanguagesNextExports

Last updated 1 year ago

SETTING UP

  1. You need to setup your Tebex Webstore and connect it to your FiveM server adding this convar in the server.cfg file:

sv_tebexSecret Your_Tebex_Secret_Key
  1. Create a new Package on your Webstore:

  1. Inside Package creation you will see a section called GAME SERVER COMMANDS.

  1. Set Commands section like this:

tebex {transaction} {id} level duration

-- This code is important, is the command that Tebex will trigger on your server after a player makes a purchase.
-- You can change the first and second number only.
-- NOT VIP players are Level 0 by default, don't create any package giving Level 0.

-- First number: level
-- Second number: months

ADDITIONAL INFORMATION

  • When a player buys a package, Tebex could take up to 10 minutes to trigger the command on your server, be patient.

  • Once the command has been triggered by Tebex, the player will automatically receive the VIP subscription.

  • If the player is disconnected from the server at the time of purchase, the data will be stored in the database. Once the player connects to the server, the corresponding subscription will be automatically applied.

If the server was offline at the time of purchase, you can give the player their subscription using the command set in .

🛠️
💎
Config.givevip