# General Exports

This page explains the available **client-side** exports for the **r\_megaphone** and their usage. These exports allow you to interact with the script programmatically from other resources.

***

### 1. Exports Overview

#### 1.1 Get Aerial Water Quantity

```lua
exports['r_aerialfire']:GetAerialWaterQuantity(netId)
```

**Description:**\
Returns the current **water quantity** of a specific aerial firefighting vehicle using its network ID.

**Parameters:**

* `netId`: The network ID of the aerial firefighting vehicle.

**Returns:**

* `number`: The quantity of water remaining. Returns `nil` if the entity doesn't exist or isn't tracked.

**Example Usage:**

```lua
local netId = NetworkGetNetworkIdFromEntity(vehicle)
local quantity = exports['r_aerialfire']:GetAerialWaterQuantity(netId)
```

***

#### 1.2 Set Aerial Water Quantity

```lua
exports['r_aerialfire']:SetAerialWaterQuantity(netId, quantity)
```

**Description:**\
Sets a new **water quantity** for a specific aerial firefighting vehicle and syncs the change with the server.

**Parameters:**

* `netId`: The network ID of the aerial firefighting vehicle.
* `quantity`: The new amount of water to set.

**Example Usage:**

```lua
local netId = NetworkGetNetworkIdFromEntity(vehicle)
exports['r_aerialfire']:SetAerialWaterQuantity(netId, 1500)
```


---

# 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/general-exports.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.
