> For the complete documentation index, see [llms.txt](https://project-07.gitbook.io/project_07-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://project-07.gitbook.io/project_07-docs/scripts/project07-lootprop-v2.md).

# Project07 LootProp v2

Fully automated prop‑searching loot system with integrated Sleepless Lootbox UI. Players can search world props (dumpsters, wrecked cars, food stands, etc.) and receive random, weighted rewards direct

***

### ✨ Features

* **Weighted random loot tables** – Define items with weights, min/max amounts, rarities, and custom images.
* **Sleepless Lootbox UI** – Beautiful spinning wheel UI with rarity colors, images, and guaranteed item delivery.
* **Multi‑framework & inventory support** – Works with **ESX, QBCore, QBX**, and any inventory (`ox_inventory`, `qb-inventory`, `qs-inventory`, or framework default).
* **Automatic target system detection** – Supports `ox_target` and `qb-target`.
* **Per‑prop cooldowns & max attempts** – Each prop can be searched a limited number of times before a reset cooldown.
* **Discord webhook logging** – Full loot records with player identifiers (Steam, Discord, license, IP).
* **No manual item giving** – The UI handles the reward delivery after the spin.
* **Temp lootbox registration** – Every search creates a temporary, unlisted lootbox, so permanent lootboxes are never polluted.
* **Debug mode** – Optional verbose console logging for testing.
* **Server‑side weighted roll** – Weights are respected exactly as defined.

***
