this is a basic redeem system utilising input dialog which i find useful for things like giving refunds or one of quick giveaways
- limit the uses of how many times the code can be used only allowing players to use the code once making it fair on others
- set the days of how long the code will be available in real time via sql
- you can choose item and amount or you can choose how much cash and or you can do both if your feeling generous (planned to do option for cash or bank soon)
with the bridge that is utilised within this script gives alot of options for different input dialogs, notifications, frameworks, inventorys making it easy to customise to whatever resource you use without being limited
preview
github
5 Likes
Is this system role or rank locked? Or, can anybody generate codes?
can allow to redeem vehicle?
** V1.0.5 update**
- vehicle option added esx(untested) or qb/qbx only
- Config.Framework added to config for vehicle option usage ‘esx’ or ‘qb’
notes
if your updating from V1.0.3 then there has been a sql name change all youl need to do is go to your database and go to the table ‘redeem_codes’ and edit the table name to ‘midnight_codes’ (or if you dont have any active codes you can run the table again and just drop the old table if you wish)
iv attached a link of the preview of the updated menu options with vehicle being given
watch here
when i try to generate or redeem code ox_lib get error

whats your start order if you need support private message ill try help you, also did you get ox_lib from releaase page rather then main? id need more error log to see whats actually happening
Where to add the webhook?
midnight redeem V1.0.8 update
midnight redeem V1.0.9 update
- /checkredeem added to check existing codes for there expiry, uses left, and what rewards they hold.
- admin check properly
versions before have been announced in qb,esx,qbox release chats just posting the most important updates here for now
new support discord Click To Join