A simple and powerful FiveM script for ESX servers, integrating OX_LIB to allow players to redeem voucher codes for in-game rewards like cash, items, and special perks. Perfect for event-based giveaways, promotions, or rewards systems on your server. 🎮
- ESX + OX_LIB Integration: Seamlessly works with ESX servers and leverages the power of OX_LIB for performance.
- Customizable Rewards: Assign a variety of rewards such as in-game cash 💸, items 🛠️, and special abilities ✨.
- Easy Command Setup: Admins can easily configure and use commands to manage voucher codes.
- Lightweight & Efficient: Designed to have minimal performance impact on your server.
- Optimalization: Runs on 0.00ms in Peak of Use!
- Download the repository or clone it into your server's resource folder.
- Import the
IMPORT.sql
file to your Database. - Configure the
config.lua
file to define voucher rewards and settings. - Add
ensure zx_codes
to yourserver.cfg
. - Restart your server to apply the changes.
The configuration file (config.lua
) allows you to customize:
- Command Name: Change the command name for admin / user commands.
- Webhook: Change the Log webhook ( Discord ).
Config = {}
Config.AdminCommand = "createcode"
Config.ClaimCommand = "claim"