BOX ITEMS | FiveM Script | [ESX]

BOX ITEMS | FiveM Script | [ESX]

$9.99

Add to Basket

  📦 Packaged Item Script for FiveM


Preview: https://www.youtube.com/watch?v=M_5Wr6iuCJ8

  This script enables the use of "packaged items" within your FiveM server. 

  When a player uses one of these items, it will unpack and reward the player with one or more predefined result items.


  🔧 Features:

  - Supports ox_inventory integration.

  - Fully compatible with FiveM frameworks (ESX, QBCore, or standalone with adjustments).

  - Easy to configure item outputs (e.g., food packs, weapon crates, starter kits, etc.).

  - Can be extended for limited-use items, cooldowns, or randomized rewards.


  🧩 How It Works:

  - Add a packaged item to your ox_inventory item list.

  - Register a usable event for the item.

  - When the item is used, the script removes the packaged item and adds the resulting items to the player's inventory.


  ✅ Example Use Case:

  - Item: `starter_pack`

    On use: gives `water`, `bread`, and a `radio`.


  📁 Installation:

  1. Place the script in your `resources` folder.

  2. Ensure it's started in your `server.cfg`.

  3. Add packaged items and their reward logic in the config or handler file.

  4. Add the items in your ox_inventory items list.


  📌 Dependencies:

  - ox_inventory (https://github.com/overextended/ox_inventory)

  - Compatible server framework (optional, for player data access)


  🛠️ Configuration:

  - All item logic is easily editable in the configuration table.

  - You can define multiple packaged items and different reward sets per item.