> For the complete documentation index, see [llms.txt](https://gscripts.gitbook.io/gscripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gscripts.gitbook.io/gscripts-docs/gs-vending-machine/installation-and-configuration.md). Agents can also search and read this documentation through its [MCP server](https://gscripts.gitbook.io/gscripts-docs/~gitbook/mcp).

# Installation and configuration

### Install

1. Download GS Vending from the [GS Scripts store](https://gscripts.tebex.store).
2. Place the gs\_vending folder in your resources directory.
3. Confirm every enabled catalog item exists in your inventory.
4. Start dependencies first and add ensure gs\_vending to server.cfg.

```
ensure ox_lib
ensure es_extended
ensure ox_inventory
# Optional: ensure ox_target
ensure gs_vending
```

For QBCore, use your existing qb-core and supported inventory setup instead of the ESX lines.

### Integrations and interaction

```
Config.Framework = 'auto' -- auto, esx, qb
Config.Inventory = 'auto' -- auto, ox_inventory, qb-inventory
Config.Interaction.type = 'auto' -- auto, text, ox_target, qb-target
```

Auto checks running resources. Interaction priority is ox\_target, qb-target, then included 3D text. Set text to force key interaction.

### Machine profiles

Each Config.MachineTypes profile has a label, GTA prop model hashes and products. Coffee, snacks and drinks can use different catalogs. Add default or custom model names to the intended profile.

```
{
    item = 'water',
    label = 'Water',
    price = 5,
    enabled = true
}
```

item is the actual inventory identifier; label is the menu text. The resource does not register product items for you. Disable or replace examples that your server does not have.

### Presentation

```
Config.Menu = {
    theme = 'retro', -- retro or clean
    position = 'top-left'
}
```

Positions: top-left, top-right, bottom-left or bottom-right. Prompt text and distances are configured separately; seeing a distant prompt does not need to allow distant purchasing.

### Usage

Approach a supported machine, use the configured key/target, select a product and pay cash. One player uses a machine at a time; purchase timing prevents instant repeated purchases. Escape, Backspace and right-click close the menu.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://gscripts.gitbook.io/gscripts-docs/gs-vending-machine/installation-and-configuration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
