> For the complete documentation index, see [llms.txt](https://docs.brutalscripts.com/site/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.brutalscripts.com/site/scripts/bank-robbery/exports-triggers.md).

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