> ## 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 Container Robbery resource

## Server Exports

Only one yard can be robbed at a time, so these exports apply to the whole heist.

### Reset

Resets the heist, clearing the active yard, contract, containers, and guards.

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

***

### IsRobberyInitiated

Returns whether a robbery is currently active.

```lua theme={null}
local active = exports['projectx-containerrobbery']:IsRobberyInitiated()
```

**Returns**

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

***

### GetActiveLocation

Returns the key of the yard being robbed, from `Config.Locations`.

```lua theme={null}
local location = exports['projectx-containerrobbery']:GetActiveLocation()
```

**Returns**

* `location` (string | nil) — e.g. `"port"`, or `nil` if no yard is active

**Example**

```lua theme={null}
local location = exports['projectx-containerrobbery']:GetActiveLocation()
if location then
    print("Container yard being robbed: " .. location)
end
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.