# 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>


---

# 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://theftdev.gitbook.io/theftdev/theftdev-scripts/resources/scrap-wrecks/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.
