> For the complete documentation index, see [llms.txt](https://theftdev.gitbook.io/theftdev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://theftdev.gitbook.io/theftdev/theftdev-scripts/resources/scrap-wrecks/installation.md).

# Installation

## Dependencies

{% tabs %}
{% tab title="QBCore" %}
QBCore Framework\
qb-target or ox\_target\
ps-dispatch - (<https://github.com/Project-Sloth/ps-dispatch>)\
ps-ui - (<https://github.com/Project-Sloth/ps-ui>)
{% endtab %}

{% tab title="ESX" %}
ESX Framework\
ox\_lib\
ox\_target\
ps-dispatch - (<https://github.com/adis05/ps-dispatch-esx>)\
ps-ui - (<https://github.com/Project-Sloth/ps-ui>)
{% endtab %}
{% endtabs %}

***

## How to install

Add the following item to `yourinventory/data/items.lua`\
QBCore users to `qbcore/shared/items.lua`\
\
Add the item image to your inventory/images

{% hint style="info" %}
If you are using a different inventory then literally create the same items for your custom inventory.
{% endhint %}

{% tabs %}
{% tab title="QBCore" %}

```lua
-- Illegal Scrap Wrecks
['laser_cutter']                    = {['name'] = 'laser_cutter',                      ['label'] = 'Laser Cutter',              ['weight'] = 500,          ['type'] = 'item',         ['image'] = 'laser_cutter.png',             ['unique'] = false,         ['useable'] = true,     ['shouldClose'] = true,     ['combinable'] = nil,   ['description'] = 'The real deal for wrecks...'},

```

{% endtab %}

{% tab title="ESX" %}

```lua
-- Illegal Scrap
['laser_cutter'] = {
	label = 'Laser Cutter',
	weight = 200,
	client = {
		image = 'laser_cutter.png',
	},
},

```

{% endtab %}
{% endtabs %}

<div data-full-width="false"><figure><img src="https://dunb17ur4ymx4.cloudfront.net/packages/images/696b819bbd631e787c2f3a01b440b4e926bb80e7.gif" alt=""><figcaption></figcaption></figure></div>

***

#### QBCore

You can add your own custom dispatch alert (QBCore & ESX)

```lua
Config.UseCustomAlert = false       -- If true you can use your own custom alert below
Config.CustomAlert = function()
    -- EXAMPLE FOR PS-DISPATCH:
    -- exports['ps-dispatch']:SuspiciousActivity()
end
```

#### ESX

```lua
Config.CustomAlert = function()
    exports['ps-dispatch']:SuspiciousActivity()
end
```

<figure><img src="https://dunb17ur4ymx4.cloudfront.net/packages/images/4c1cf58d26c54c0c186c32cfead7cac1f3ea9b24.gif" alt=""><figcaption></figcaption></figure>
