# Installation

Before using this resource, make sure you have installed all required dependencies.

### Required Dependencies

* [ox\_lib](https://github.com/overextended/ox_lib)
* [oxmysql](https://github.com/overextended/oxmysql)
* [msk\_bridge](https://github.com/Mrmisio345/msk_bridge)

### Install Dependencies

#### 1. Download all required resources

Download the following resources:

* `ox_lib`
* `oxmysql`
* `msk_bridge`

#### 2. Place them in your server resources folder

Upload all resources into your server’s `resources` folder.

#### 3. Import the database

Run the included `db.sql` file on your database before starting the resource.

Database table:

* `msk_dialogs`

#### 4. Add them to your `server.cfg`

Make sure the following lines are included in your `server.cfg`:

```cfg
ensure ox_lib
ensure oxmysql
ensure msk_bridge
ensure msk_dialogs
```

#### 5. Set API keys if using TTS

You can set your API keys directly in the config or use server convars instead.

Example:

```
set elevenlabs_api_key "your_key_here"
set openai_api_key "your_key_here"
```

#### 6. Restart your server

Restart your server once everything has been added.

### Important

* `ox_lib` must start before this resource
* `oxmysql` must start before this resource
* `msk_bridge` must start before this resource
* Make sure the database is imported before starting the resource


---

# Agent Instructions: 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:

```
GET https://mskscripts.gitbook.io/mskscripts/scripts/npc-dialog-system/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
