> 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/overview.md).

# Overview

Random roaming NPC dealer for FiveM — auto-detects framework, inventory, phone and targeting.

The script randomly spawns an NPC named "Alex" (at random intervals) at one of the locations defined in the config. Alex sells one random item (also defined in the config) in a limited quantity. Players (except those with blacklisted jobs) receive an SMS about it with the location. Once the stock is sold out, or the time runs out, Alex disappears.

The script automatically detects the framework, inventory, phone, and targeting system installed on the server — in most cases nothing needs to be switched manually.

## Where to go next

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><i class="fa-list-check" style="color:$primary;">:list-check:</i></h3></td><td><strong>Requirements</strong></td><td>The hard dependency and the auto-detected systems.</td><td><a href="/rayn-scripts-docs/rayn_alexmarket/requirements.md">Requirements</a></td></tr><tr><td><h3><i class="fa-rocket" style="color:$primary;">:rocket:</i></h3></td><td><strong>Installation</strong></td><td>Get Alex running on your server.</td><td><a href="/rayn-scripts-docs/rayn_alexmarket/installation.md">Installation</a></td></tr><tr><td><h3><i class="fa-sliders" style="color:$primary;">:sliders:</i></h3></td><td><strong>Configuration</strong></td><td>Every option in config.lua, including stock and spawn locations.</td><td><a href="/rayn-scripts-docs/rayn_alexmarket/configuration.md">Configuration</a></td></tr><tr><td><h3><i class="fa-terminal" style="color:$primary;">:terminal:</i></h3></td><td><strong>Commands</strong></td><td>Trigger Alex's event on demand.</td><td><a href="/rayn-scripts-docs/rayn_alexmarket/commands.md">Commands</a></td></tr><tr><td><h3><i class="fa-diagram-project" style="color:$primary;">:diagram-project:</i></h3></td><td><strong>How It Works</strong></td><td>Technical overview of the bridge files.</td><td><a href="/rayn-scripts-docs/rayn_alexmarket/how-it-works.md">How It Works</a></td></tr><tr><td><h3><i class="fa-circle-question" style="color:$primary;">:circle-question:</i></h3></td><td><strong>Troubleshooting</strong></td><td>Fixes for the most common setup issues.</td><td><a href="/rayn-scripts-docs/rayn_alexmarket/troubleshooting.md">Troubleshooting</a></td></tr></tbody></table>


---

# 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/overview.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.
