> For the complete documentation index, see [llms.txt](https://docs.ak4y.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ak4y.com/scripts/ak4y-vending/installation.md).

# Installation

{% hint style="warning" %}
This script requires ak4y-core to work. Please download it from your portal (cfxre, keymaster).
{% endhint %}

{% stepper %}
{% step %}

### Unzip the downloaded file.

{% endstep %}

{% step %}

### Move the script file to your resources folder.

{% endstep %}

{% step %}

### Read the .sql file in the file to the database.

{% endstep %}

{% step %}

### Configure the script to your own specifications.

{% endstep %}

{% step %}

### Add items for your server.

**qb-core items**

```lua
vending                     = { name = 'vending', label = 'Vending Drink', weight = 100, type = 'item', image = 'vending.png', unique = true, useable = true, shouldClose = true, description = '' },
vending2                     = { name = 'vending2', label = 'Vending Food', weight = 100, type = 'item', image = 'vending2.png', unique = true, useable = true, shouldClose = true, description = '' },
```

**ox\_inventory items**

```lua
    ['vending'] = {
        label = 'Vending Drink',
        stack = false,
        weight = 500,
    },
    ['vending2'] = {
        label = 'Vending Food',
        stack = false,
        weight = 500,
    },
```

**esx items**

```sql
INSERT INTO items (name, label, weight, rare, can_remove) VALUES
('vending', 'Vending Drink', 500, 0, 1),
('vending2', 'Vending Food', 1000, 0, 1);
```

{% endstep %}
{% endstepper %}
