> For the complete documentation index, see [llms.txt](https://docs.rytrak.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rytrak.fr/scripts/advanced-aerial-firefighting/compatibility-with-toxicfire.md).

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