# Compatibility with ToxicFire

This guide explains how to make the Advanced Aerial Firefighting script compatible with the Toxic Fire system.

***

### 1. Manual Integration

#### Step-by-step instructions:

1. Go to the following file in the Toxic Fire resource:

```
server/server.lua
```

2. Scroll to the bottom of the file and add the following code:

```lua
exports('GetAllFires', function()
    return AllFires
end)
```

This export makes the `AllFires` data accessible to other scripts, including Advanced Aerial Firefighting.

***

### 2. Final Steps

1. Ensure that the `firescript` resource is started **before** `r_aerialfire` in your `server.cfg`:

```
ensure firescript
ensure r_aerialfire
```

2. Restart your server to apply the changes.


---

# 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.rytrak.fr/scripts/advanced-aerial-firefighting/compatibility-with-toxicfire.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.
