# exports / triggers

## Server Exports

<table><thead><tr><th width="456" align="center">Export</th><th align="center">Result</th></tr></thead><tbody><tr><td align="center">exports['brutal_bank_robbery']:GetCurrentRobberyCount()</td><td align="center">Number of currently active bank robberies</td></tr></tbody></table>

For example:

```lua
local count = exports['brutal_bank_robbery']:GetCurrentRobberyCount()
print("Active robberies:", count)
```

## Client Export

<table><thead><tr><th width="431" align="center">Export</th><th align="center">Result</th></tr></thead><tbody><tr><td align="center">exports['brutal_bank_robbery']:IsPlayerInRobbery()</td><td align="center"><strong>Returns if the player is in a robbery and which bank index they are in.</strong></td></tr></tbody></table>

For example:

<pre class="language-lua"><code class="lang-lua"><strong>local inRobbery, bankIndex = exports['brutal_bank_robbery']:IsPlayerInRobbery()
</strong>
<strong>if inRobbery then
</strong>    print("You are robbing bank index:", bankIndex)
else
    print("You are not in any robbery.")
end
</code></pre>


---

# 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.brutalscripts.com/site/scripts/bank-robbery/exports-triggers.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.
