Coder Social home page Coder Social logo

qb-coupons's Introduction

QBCORE | COUPONS - REDEEM | Create Coupon Codes for your Players or let Tebex do it!

players can redeem ingame!

Setup

  1. Run the SQL File
  2. Put the Script in your resources, and start it in cfg file.

How to use with TEBEX

  1. Link your DATABASE to Tebex as a game server.
  2. Add in this as the command -
INSERT INTO `codes` VALUES ('{transaction}-7' , 'item-name or money', 'AMOUNT', '0', 'TEBEX', NULL);

Example for item

INSERT INTO `codes` VALUES ('{transaction}-7' , 'donorcoin', '2', '0', 'TEBEX', NULL);

Example for Money

INSERT INTO `codes` VALUES ('{transaction}-8' , 'money', '4000000', '0', 'TEBEX', NULL);

Same as example below make sure they are in ''s and that AMOUNT is a number.

  1. Make Sure to put -(Number) at the end like i have -7 on this one for EACH item/code Given. And then tell your customers that to redeem they just type in the tebex transID and the -7 or whatever number(s) it is for that package.
  2. Example of how to redeem a tebex transaction - /redeem tbx-43725621a42940-35b945-7

Tebex example Picture

https://imgur.com/f9IIQZ3

Commands ingame

  • /createcode [type] [amount] - Creates a Code (Only for GOD Level Holder)
  • /redeem [code] - Redeem a Given Code
  • Where [type] can be money or item-name

Examples ingame

/createcode money 50000 // returns code with Rewards as 50K

/createcode electronic_kit 15 // returns code with Rewards 15 Electronic Kits

/redeem un$i9KuZmV // redeems code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.