> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectx.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Exports

> Server-side exports available for the FM Ammunation Robbery resource

## Server Exports

All exports require a valid location key from `Config.Stores` (e.g. `"PillboxHill"`, `"PaletoBay"`, `"CypressFlats"`).

### Reset

Resets the robbery at the given location, clearing active state and restoring the store.

```lua theme={null}
exports['projectx-ammunationrobbery-fm']:Reset('PillboxHill')
```

**Returns**

* `true` if the location exists and was reset successfully

***

### IsRobberyInProgress

Returns whether a robbery is currently active at the given location.

```lua theme={null}
local active = exports['projectx-ammunationrobbery-fm']:IsRobberyInProgress('PillboxHill')
```

**Returns**

* `true` if a robbery is in progress at that location, `false` otherwise

**Example**

```lua theme={null}
local active = exports['projectx-ammunationrobbery-fm']:IsRobberyInProgress('PaletoBay')
if active then
    print("Paleto Bay Ammunation is being robbed")
end
```

***

### GetActiveRobberyCount

Returns the total number of active Ammunation robberies across all locations.

```lua theme={null}
local count = exports['projectx-ammunationrobbery-fm']:GetActiveRobberyCount()
```

**Returns**

* `count` (number) — total active robberies

**Example**

```lua theme={null}
local count = exports['projectx-ammunationrobbery-fm']:GetActiveRobberyCount()
print("Active Ammunation robberies: " .. count)
```
