📦 Installation Instructions for Black market Script System
Follow these instructions carefully to set up the Christmas Gift Drop Script and ensure it works seamlessly on your server.
🛠️ Asset Dependencies
This script has essential dependencies required for proper operation. Missing any of these may cause errors or prevent the script from functioning.
Dependencies & Direct Links
Dependency
Direct Link
qbcore
Alternatively, for ESX, use the following dependencies:
📦 Install Items in inventory
To make the script work with gift collection and rewards, you’ll need to add specific items to your inventory. Use the following code snippet to include the required items for the Christmas Gift Drop Script:
Click to view Items for qb-inventory Code
evo_christmasgift_small = {
name = 'evo_christmasgift_small',
label = 'Small Christmas Gift',
weight = 1,
type = 'item',
image = 'evo_christmasgift_small.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'A small gift full of surprises for Christmas!'
},
evo_christmasgift_medium = {
name = 'evo_christmasgift_medium',
label = 'Medium Christmas Gift',
weight = 2,
type = 'item',
image = 'evo_christmasgift_medium.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'A medium-sized gift filled with holiday cheer!'
},
evo_christmasgift_large = {
name = 'evo_christmasgift_large',
label = 'Large Christmas Gift',
weight = 3,
type = 'item',
image = 'evo_christmasgift_large.png',
unique = false,
useable = true,
shouldClose = true,
combinable = nil,
description = 'A large Christmas gift packed with amazing surprises!'
},
Click to view Items for ox_inventory Code
{
name = 'evo_christmasgift_small',
label = 'Small Christmas Gift',
weight = 1000, -- In grams
stack = true,
close = true,
description = 'A small gift full of surprises for Christmas!',
},
{
name = 'evo_christmasgift_medium',
label = 'Medium Christmas Gift',
weight = 2000, -- In grams
stack = true,
close = true,
description = 'A medium-sized gift filled with holiday cheer!',
},
{
name = 'evo_christmasgift_large',
label = 'Large Christmas Gift',
weight = 3000, -- In grams
stack = true,
close = true,
description = 'A large Christmas gift packed with amazing surprises!',
},
🖼️ Images Installation
To ensure your items display correctly in the inventory, follow these steps to install the images:
Navigate to the Images Directory:
In your project folder, go to:
evo-christmas/items.
Install Item Images:
Place your item images (e.g., evo_christmas_small.png) into the items directory to make them appear in Ineventory.
Make sure all images are correctly named to match their corresponding items in your code!
📌 Final Steps
1. Verify that all dependencies are correctly installed.
2. Ensure item names and images match perfectly in the inventory configuration.
3. Restart your server and test the script to confirm everything is working as expected.
By following these steps, you’ll have the Christmas Gift Drop Script fully functional and ready to bring festive joy to your server! 🎄🎁