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

# Configuration

Every option in config.lua.

## Auto-detection (can be forced manually)

```lua
Config.Framework = 'auto'  -- 'auto' | 'esx' | 'qb' | 'qbox'
Config.Inventory = 'auto'  -- 'auto' | 'ox' | 'core'
Config.Phone     = 'auto'  -- 'auto' | 'lb-phone' | 'qb-phone' | 'qs-smartphone' | 'roadphone' | 'wasabi_phone' | 'none'
Config.Target    = 'auto'  -- 'auto' | 'ox_target' | 'qb-target' | 'none'
```

Set a value manually if you run multiple resources of the same type at once (e.g. `qb-core` and `qbx_core` together on a dev server) and auto-detection picks the wrong one.

## Other options

```lua
Config.Locale = 'pl'               -- pl / en / fr / nl / ru / dk / cz / hu
Config.MoneyAccount = 'cash'       -- account used in fallback mode ('cash' or 'bank' for QB/Qbox)
Config.AdminAce = 'alexmarket.admin' -- ACE permission required for /startnpc from a player
Config.NpcModel = `a_m_m_soucent_02`
Config.EventDuration = 30          -- how many minutes Alex stays / how long the event lasts
Config.NpcName = "Alex"
Config.AlexPhoneNumber = "555-0000"
Config.MinWaitMinutes = 180        -- random gap between events (min)
Config.MaxWaitMinutes = 360        -- random gap between events (max)
```

## Stock (`Config.PossibleItems`)

One entry from the list is randomly picked **each time**:

```lua
{item = 'dscard', label = 'Karta dostępu', price = 5000, icon = 'id-card', amount = 2}
```

* `item` – the item name in your inventory (must exist in `items.lua` / your `ox_inventory` items).
* `label` – the name shown to the player.
* `price` – price per unit.
* `amount` – how many units Alex has in stock (the event ends once sold out).
* `icon` – only used with `ox_inventory` (icon in the shop).

## Locations (`Config.SpawnLocations`)

A list of `vector4(x, y, z, heading)` — one is randomly picked each time the event starts.

## Job blacklist (`Config.BlacklistedJobs`)

Jobs that **do not receive an SMS** from Alex (e.g. emergency services):

```lua
Config.BlacklistedJobs = {
    ['police'] = true,
    ['sheriff'] = true,
    ['ambulance'] = true,
    ['doj'] = true,
    ['mechanic'] = true
}
```


---

# 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://rayn-scripts.gitbook.io/rayn-scripts-docs/rayn_alexmarket/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.
