# Installing a Plugin

* **Download** the plugin.
* (**Optional**) If the plugin **does not** provide a directory structure, create a directory with the plugin name in `<game_directory>/red4ext/plugins`.
* **Copy** the plugin files as following:
  * If you have created a directory at step **2**, copy the files in the newly created directory.
  * If you did not create a directory, copy the files in `<game_directory>/red4ext/plugins`.
* (**Optional**) Start the game and verify `<game_directory>/red4ext/logs/game.log` if the plugin is loaded correctly.


---

# 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://docs.red4ext.com/getting-started/installing-a-plugin.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.
