# Installation

## Dependencies

{% tabs %}
{% tab title="QBCore" %}
QBCore Framework\
qb-target\
ps-dispatch - ([https://github.com/Project-Sloth/ps-dispatch](https://github.com/Project-Sloth/ps-dispatch))
{% endtab %}

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

***

## How to install

Drag the script in your folder\
\
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
-- Cocaine
coca_bag = { 
        name = 'coca_bag', 
        label = 'Coca Bag', 
        weight = 1000, 
        type = 'item', 
        image = 'bag.png', 
        unique = true, 
        useable = false, 
        shouldClose = false, 
        description = 'It is very fragile, watch out' 
    },
    coca_pack = { 
        name = 'coca_pack', 
        label = 'Coca Pack', 
        weight = 500, 
        type = 'item', 
        image = 'imporage.png', 
        unique = false, 
        useable = false, 
        shouldClose = false, 
        description = 'It is very fragile, watch out' 
    },
    coca_powder = { 
        name = 'coca_powder', 
        label = 'Coca Powder', 
        weight = 500, 
        type = 'item', 
        image = 'coke.png', 
        unique = false, 
        useable = false, 
        shouldClose = false, 
        description = 'It is very fragile, watch out' 
    },
    coca_leaf = { 
        name = 'coca_leaf', 
        label = 'Coca Leaf', 
        weight = 50, 
        type = 'item', 
        image = 'coke_leaf.png', 
        unique = false, 
        useable = false, 
        shouldClose = false, 
        description = 'It is very fragile, watch out' 
    },
    baking_soda = { 
        name = 'baking_soda', 
        label = 'Baking Soda', 
        weight = 100, 
        type = 'item', 
        image = 'bakingsoda.png', 
        unique = false, 
        useable = false, 
        shouldClose = false, 
        description = 'It is very fragile, watch out' 
    },
    fake_creditcard = { 
        name = 'fake_creditcard', 
        label = 'Fake Card', 
        weight = 50, 
        type = 'item', 
        image = 'bank_card.png', 
        unique = false, 
        useable = false, 
        shouldClose = false, 
        description = 'It is very fragile, watch out' 
    },
```
{% endtab %}

{% tab title="ESX" %}
```lua
	-- Cocaine
	['coca_bag'] = {
		label = 'Coca Bagpack',
		weight = 500,
		client = {
			image = 'bag.png',
		},
	},
	['coca_leaf'] = {
		label = 'Coca Leaf',
		weight = 20,
		client = {
			image = 'coke_leaf.png',
		},
	},
	['baking_soda'] = {
		label = 'Baking Soda',
		weight = 50,
		client = {
			image = 'bakingsoda.png',
		},
	},
	['fake_creditcard'] = {
		label = 'Fake Card',
		weight = 200,
		client = {
			image = 'bank_card.png',
		},
	},
	['coca_powder'] = {
		label = 'Coca Powder',
		weight = 100,
		client = {
			image = 'coke.png',
		},
	},
	['coca_pack'] = {
		label = 'Coca Pack',
		weight = 250,
		client = {
			image = 'imporage.png',
		},
	},
	['coke_brick'] = {
		label = 'Coca Brick 1KG',
		weight = 1000,
		client = {
			image = 'coke_brick.png',
		},
	},
```
{% endtab %}
{% endtabs %}
