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.
- Git clone this repository or download the latest release
- Configure
config.lua
- Open
client.lua
and change the notification to yours - Import the sql
vyzo_giveaway.sql
- Add
ensure vyzo_giveaway
onserver.cfg
after oxmysql and oxlib
- /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
- 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)
- 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
- Add reward type:
car