Redeem code system

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


:point_right: preview
:point_right: github

5 Likes

Nice work :100:

1 Like

update

  • debug configable now
  • register /genredeem server side now with admin check properly
  • now multiple item support
  • notification to tell you what you received properly
  • option for cash or bank on redeeming now with notify telling you cash or bank
  • version checker
  • commands configurable
1 Like

Is this system role or rank locked? Or, can anybody generate codes?

ESX or QB?

can allow to redeem vehicle?

admin locked

soon im doing a update

1 Like

both via the bridge :slight_smile:

you can now :slight_smile:

** 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

W bro :fire:

when i try to generate or redeem code ox_lib get error
image

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?

server/discord.lua

midnight redeem V1.0.8 update

  • zdiscord bot integrated

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

big update coming soon

:hourglass: when is soon

1 Like