Git Product home page Git Product logo

vyzo_giveaway's Introduction

This a script to make things easier when you want to host a giveaway on your roleplay server by creating a code and can be redeemed by the players.

Dependency

  1. oxmysql
  2. ox_lib

Installation

  1. Git clone this repository or download the latest release
  2. Configure config.lua
  3. Open client.lua and change the notification to yours
  4. Import the sql vyzo_giveaway.sql
  5. Add ensure vyzo_giveaway on server.cfg after oxmysql and oxlib

Usage

  • /cga to create a new giveaway
  • /redeem to redeem a code
  • Format to give reward type car: car_CARMODEL_PLATE. Example: car_adder_VYZO or car_adder

Features

  • 0.00ms resmon when idle and 0.001ms for a blink of an eye when executing the command
  • Use your own code or auto generated code with flexible configuration
  • Set how many a code can be redeemed by players
  • Support logging to Discord using Discord webhook
  • Check the code format before executing any queries (check server.lua, default are commented)
  • Available in two languages English and Bahasa Indonesia
  • Supported reward type: money, bank, items (for ox_inventory users, items are not attached to database so you can give weapons too)

Note

  • Tested with ESX Legacy 1.8.5 and working fine
  • You need to have esx_vehicleshop running or at least have the sql table imported if you want to make the reward type car
  • Change the notification in client/client.lua to your notification

Preview

https://imgur.com/a/RqLFTeU

Todo

  • Add reward type: car

vyzo_giveaway's People

Contributors

hariboinc avatar kangoka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.