kangoka / vyzo_giveaway

A script for admin to create a code for players to redeem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A script for admin to create a code for players to redeem

License:MIT License


Languages

Language:Lua 100.0%