> For the complete documentation index, see [llms.txt](https://quannsstudios.gitbook.io/quannsstudio-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quannsstudios.gitbook.io/quannsstudio-docs/chain-system-or-esx-and-qb-or-ox_target-or-snatch/configuration.md).

# Configuration

All configuration lives in `config.lua`.

**Full Config**

lua

```lua
-- Framework (ESX or QB)
Config.Framework = 'ESX' -- 'ESX' or 'QB'

-- Ox Target settings
Config.UseOxTarget = true
Config.TargetDistance = 2.0

-- Animation settings
Config.PutOnDuration = 3000  -- 3 seconds
Config.SnatchDuration = 2000 -- 2 seconds

Config.Chains = {
    ['quannsstudios_chain'] = {
        label       = 'Quanns Studios Chain',
        componentId = 7,
        drawableId  = 9,
        textureId   = 0
    },
    ['diamondchain'] = {
        label       = 'Diamond Chain',
        componentId = 7,
        drawableId  = 3,
        textureId   = 0
    },
    ['silverchain'] = {
        label       = 'Silver Chain',
        componentId = 7,
        drawableId  = 4,
        textureId   = 0
    },
    ['cubanchin'] = {
        label       = 'Cuban Link Chain',
        componentId = 7,
        drawableId  = 5,
        textureId   = 1
    },
}
```

**Options**

| Option           | Description                                             |
| ---------------- | ------------------------------------------------------- |
| `Framework`      | Set to `ESX` or `QB` depending on your server framework |
| `UseOxTarget`    | Enable or disable ox\_target for the snatch interaction |
| `TargetDistance` | Max distance in metres to snatch a chain                |
| `PutOnDuration`  | How long the put on animation plays in milliseconds     |
| `SnatchDuration` | How long the snatch animation plays in milliseconds     |

**Adding Custom Chains**

To add a new chain find the correct ped component values using a clothing tool then add it to `Config.Chains`:

lua

```lua
['youritemname'] = {
    label       = 'Your Chain Label',
    componentId = 7,    -- neck component dont change this is for the chains!
    drawableId  = 0,    -- drawable index
    textureId   = 0     -- texture index
}
```

Make sure the item name matches exactly in both `Config.Chains` and your ox\_inventory items file.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://quannsstudios.gitbook.io/quannsstudio-docs/chain-system-or-esx-and-qb-or-ox_target-or-snatch/configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
