AV Scripts
StoreDiscord
  • Documentation
  • Guides
    • Dealerships
      • Installation
      • Admin Panel
        • All Vehicles
        • Dealerships
        • Auctions
      • Dealership Panel
        • Overview
        • Auctions
        • Employees
        • Orders
        • Payments
        • Showroom
        • Warehouse
        • Pre Owned
        • Settings
      • Buy/Sell Vehicles
      • Catalogue
      • Exports
      • FAQ
    • House Robbery
      • Installation
      • Add Shells
      • Dispatch
      • Exports
      • Weather
      • Minigames
      • Notifications
      • New Houses
      • Object Types
      • Sell Items
    • Illegal Runs
      • Installation
      • Customization
      • Ox Inventory
      • QB Inventory
    • Multicharacter
      • Installation
      • Character Slots
      • Clothes
      • Scenes
        • Previews
      • Exports
      • Weather
    • Paleto Heist
      • Buy here
    • Refund System
      • Installation
        • Inventories
    • Tuning Script
      • Installation
      • Events and Controls
      • Exports
      • Price Multiplier
    • Vehicleshop
      • Installation
      • Admin Panel
      • Addon Vehicles
      • Functions
        • Fuel
        • Keys
        • VIP
        • Weather
      • Garages
      • HUD
      • Society
    • Weather Script
      • Installation
      • Breath Condensation
      • Fog
      • Real Time Sync
      • Exports
    • VIP Script
      • Installation
      • Exports
      • Categories
      • Admin
      • Tebex
      • Free Tokens
  • LAPTOP PACK V3
    • Laptop v3
      • Installation
        • Inventory
        • Cosmo
        • Permissions
        • QBCore
        • Custom Framework/Inventory
        • Phone
        • Translate
      • Browser
      • Terminal
      • Documents
      • APPs Config
      • Exports
    • Boosting
      • Create Profile
      • APP
      • Contracts
      • Dispatch
      • Lockpick Export
      • VIN Export
    • Business
      • Installation
        • Inventories
          • Origen Inventory
            • ESX
            • QBCore
          • OX Inventory
          • QB/PS/LJ Inventory
          • Quasar Inventory
            • ESX
            • QBCore
          • Codem Inventory
          • Tgiann Inventory
        • ESX
      • Admin Panel
        • Create Zones
        • Edit Zones
      • Config
        • Animations
        • Blips
        • Buttons
        • Crafting
        • Effects
        • Events
          • Items
          • Zones
        • Logs
          • Custom Logs
        • Permissions
      • Exports
      • Banking Scripts
      • Multijobs
    • Cameras
      • Installation
        • Vehicle Cameras
      • Place Camera
      • Job Cameras
    • Drugs
      • Installation
      • Admin Panel
      • APP
      • Tables
      • Labs
        • PC
        • Raids
      • Alert Cops
      • Shells
      • Exports
    • Gangs
      • Installation
      • Admin Panel
        • Gangs
        • Whitelist
      • Properties
      • Register Gang
      • APP
        • Members
        • Settings
        • Missions
        • Blackmarket
        • Properties
      • Graffitis
      • Missions
      • Gang NPC
      • Shells
      • Exports
      • Labs
    • Groups
      • Events
      • Exports
    • Music
      • Installation
      • Music Labels
      • APP
        • Search Music
        • Playlists
        • Headphones
      • CDs
    • Racing
      • Installation
        • Permissions
        • Discord Logs
        • Addon Vehicles
      • Admin Panel
      • Categories
      • Events
      • Exports
      • Personal Settings
      • The Underground
    • Custom APPs
    • Discord Support
Powered by GitBook
On this page
  • Package Properties
  • How to Redeem
  1. Guides
  2. VIP Script

Tebex

Last updated 3 months ago

The VIP store uses Tokens as currency. Players can buy Token packages from your Tebex store and redeem their Transaction IDs in-game. This guide helps you connect your Tebex packages to the script for seamless redemption.

Your Tebex Store should be already linked and working with your server, is on YOU to connect it, read and follow the Tebex guide for this.

Package Properties

Create a new Package in your Tebex Store, for this example we are creating a package equivalent to 50 tokens.

  • Setup your package title, description, thumbnail, category, price, etc.

  • In the bottom actions select Game Server Commands

  • Select your Game Server from the dropdown menu and in the command line click the Settings Button in the right side to display more options.

  • Make sure the command is triggered only When the package is purchased.

  • Require player to be online: Set this option to "Execute command even if the player is offline".

    • If you don't change this, the command will never be triggered on your server and you will need to trigger it from your Tebex panel manually.

  • The command to trigger should be tokens (amount to add) {transaction}

tokens 50 {transaction}
  • tokens: This is the command the console will execute when the package is purchased, this should match your Config.TebexCommand in config/_config.lua

  • amount: The amount of tokens to add, that depends on your Tebex package, for this example we are adding 50 tokens.

  • transaction: This is the Tebex Transaction ID, make sure is written as {transaction}, Tebex will replace it with the actual Transaction ID.

Once everything is setup you can save and publish your package.

How to Redeem

  • Once your players make a purchase of tokens from your Tebex Store, they will see this page where an unique Tebex Transaction ID is generated (they also receive it in their email):

tbx-4902525a16304-b0f69b
  • This Transaction ID and the amount of tokens will be saved into the vip_codes table in your Database:

  • You will also receive a Discord notification for the transaction:

  • The player can now redeem the code from the VIP panel:

  • You will receive a new Discord notification with the info of who redeemed the code, how many tokens where added and his current tokens balance.

Tebex can take up to 5 mins to process the purchase and trigger the server command, please be patience. Your server needs to be online and running, otherwise you will need to manually resend the game commands from your Tebex panel.

https://www.youtube.com/watch?v=it-eiJDwV5E