Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kangoka/vyzo_giveaway

A script for admin to create a code for players to redeem
https://github.com/kangoka/vyzo_giveaway

fivem fivem-roleplay fivem-script giveaway

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        



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](https://github.com/overextended/oxmysql)
2. [ox_lib](https://github.com/overextended/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
- [x] Add reward type: `car`