Gift Codes | Create & Redeem In-Game | QBCore · Qbox · ESX01 / 09

◆DigitalDEN

Gift Codes | Create & Redeem In-Game | QBCore · Qbox · ESX

ESXQBQBOXOX_LIB

# Gift Codes — DigitalDEN **Staff create gift codes in game. Players redeem them in one field. No database, no dependencies.** 📺 **Showcase & more scripts:** https://www.youtube.com/@DigitallDENN 💬 **Support, updates &…

SKU ns-7666856·Category DigitalDEN

◆Full details

# Gift Codes — DigitalDEN

**Staff create gift codes in game. Players redeem them in one field. No database, no dependencies.**

📺 **Showcase & more scripts:** https://www.youtube.com/@DigitallDENN

💬 **Support, updates & previews:** https://discord.gg/hM3h8Namq8

---

## Why this one

Most gift code scripts make your staff type item names by hand and hope they spelled it right.

This one reads your server's **live item list** — icons, labels and all — and lets them pick from a searchable grid. Everything auto-detects. Drop it in, start it, done.

---

## Features

- **Admin panel in game** — create codes without touching a config file or a database

- **Live item picker** — every item on your server as image tiles, searchable by item name or display label

- **Any reward** — cash, bank, and unlimited items per code

- **Full control** — max uses, expiry in days, one-redeem-per-player toggle

- **Live management** — enable, disable or delete codes, with search and usage counters

- **Code generator** — one click, and it skips look-alike characters so nobody misreads `O` for `0`

- **Inventory space check** — rewards are never granted if the player can't carry them, so nothing is lost

- **Clean redeem panel** — one field, instant reward breakdown

- **Anti-abuse built in** — redeem cooldowns and automatic lockout after repeated wrong guesses

- **Fully translatable** — every word in both panels lives in the config

---

## Compatibility

| | Supported |

| --- | --- |

| **Frameworks** | QBCore · Qbox · ESX |

| **Inventories** | ox_inventory · qb-inventory · ps-inventory · qs-inventory · lj-inventory |

| **Notifications** | Built-in · ox_lib · QBCore/Qbox · ESX · your own event |

All three detect automatically. Force any of them in the config if you'd rather.

---

## Requirements

**None.**

No database, no ox_lib, no dependencies. Codes persist in a JSON file inside the resource and survive restarts — nothing to import, nothing to maintain.

---

## Install

Drop it in, add `ensure DD-Giftcodes`, give your staff the ace. The console tells you exactly what it detected:

```

[DigitalDEN] DD-Giftcodes v1.0.0 started

[DigitalDEN] Framework: qbx | Inventory: ox | Notify: custom | Codes loaded: 0

```

---

## For developers

Create codes from a Discord bot, vote rewards, a shop — anything:

```lua

exports['DD-Giftcodes']:CreateCode('WELCOME2025', {

**    accounts = { cash = 5000 },**

**    items = { { name = 'bread', amount = 2 } }**

}, { maxUses = 100 })

```

Plus `DD-Giftcodes:server:onRedeem` fired on every successful redeem, for Discord logging.

---

## What's open

The **config and the entire UI** (HTML, CSS and JS) are left open, so you can retheme it to your server and translate every string. Core logic is escrowed.

---

📺 https://www.youtube.com/@DigitallDENN

💬 https://discord.gg/hM3h8Namq8

Gift Codes | Create & Redeem In-Game | QBCore · Qbox · ESX — Northstar Studios