# Installation

**Dependencies:**

* [ox\_lib](https://github.com/overextended/ox_lib)
* [oxmysql](https://github.com/overextended/oxmysql)
* [bd-minigames](https://github.com/kristiyanpts/bd-minigames)<br>

**After installing the required dependencies, place the script file into your designated `resources` folder. Then, navigate to your inventory's item data file and add the following lines at the end of the list.** \
\
**Remember to add these required items needed to do these processes to your server's shop/black market script, so players get the m and use them (the script doesn't have an inbuild shop as most server use a custom shop script)**<br>

**Ox Inventory  (Copy Paste This At The End Of Your `items.lua` Inside** `ox_inventory\data` **)**&#x20;

```
 ['transplant_cooler'] = {
    name = "transplant_cooler",
    label = 'Transplant Cooler',
    description = "(Used To Transport Organs)",
    stack = false,
    weight = 10000,
    consume = 0,
    metadata = {
        BoxSerial = true
    },
    client = {
        image = 'transplant_cooler.png',

        add = function(total) -- when the item is added this is called
            if total > 0 then
                pcall(function() return exports.cl_org_harvest:StartCarryingCooler() end)
            end
        end,

        remove = function(total) -- when the item is removed this is called

            if total < 1 then
                pcall(function() return exports.cl_org_harvest:StopCarryingCooler() end)
            end
        end
    }
},

['hack_zero'] = {
    name = "hack_zero",
    label = 'H4ck z3r0',
    description = "Used To Hack Databases",
    stack = false,
    weight = 1000,
    client = {
        image = 'hack_zero.png',
    }
},

['magic_dust'] = {
    name = "magic_dust",
    label = 'Magic Powder',
    description = "Used To Make People Sleep For A Long Time",
    stack = true,
    weight = 1000,
    client = {
        image = 'magic_dust.png',
    }
},

['scalpel'] = {
    name = "scalpel",
    label = 'Surgery Scalpel',
    description = "Used To Cut Into People",
    stack = false,
    weight = 1000,
    client = {
        image = 'scalpel.png',
    }
},

['bonesaw'] = {
    name = "bonesaw",
    label = 'Surgery Saw',
    description = "Used To Cut Deeper Into People",
    stack = false,
    weight = 2000,
    client = {
        image = 'bonesaw.png',
    }
},
```

**QB Inventory**

```
["transplant_cooler"] = {
    name = "transplant_cooler",
    label = "Transplant Cooler",
    description = "(Used To Transport Organs)",
    weight = 10000,
    stack = false,
    close = true,
    type = "item",
    unique = true,
    image = "transplant_cooler.png",
    info = {
        BoxSerial = true
    }
},

["hack_zero"] = {
    name = "hack_zero",
    label = "H4ck z3r0",
    description = "Used To Hack Databases",
    weight = 1000,
    stack = false,
    close = true,
    type = "item",
    unique = true,
    image = "hack_zero.png"
},

["magic_dust"] = {
    name = "magic_dust",
    label = "Magic Powder",
    description = "Used To Make People Sleep For A Long Time",
    weight = 1000,
    stack = true,
    close = true,
    type = "item",
    unique = false,
    image = "magic_dust.png"
},

["scalpel"] = {
    name = "scalpel",
    label = "Surgery Scalpel",
    description = "Used To Cut Into People",
    weight = 1000,
    stack = false,
    close = true,
    type = "item",
    unique = true,
    image = "scalpel.png"
},

["bonesaw"] = {
    name = "bonesaw",
    label = "Surgery Saw",
    description = "Used To Cut Deeper Into People",
    weight = 2000,
    stack = false,
    close = true,
    type = "item",
    unique = true,
    image = "bonesaw.png"
}
```

**You can also edit the it to adapt to you custom inventory script, you can also use these exports on your custom inventory to show when a player is holding the item**\
\
**Plays the emote of carrying the cooler prop (When The Item is Added, You call this export to show the cooler in hand)**\
`exports.cl_org_harvest:StartCarryingCooler()`\
\
**Removes the emote of carrying the cooler prop (When The Item is Removed, You call this export to remove the cooler from the hand)**\
`exports.cl_org_harvest:StopCarryingCooler()`\
&#x20;\
**For Further Support Join Our** [**Discord**](https://discord.com/invite/PeDmabgehk)**!**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://corelogic-development.gitbook.io/corelogic-development/scripts/advanced-organ-harvesting/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
