> For the complete documentation index, see [llms.txt](https://libertycode.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://libertycode.gitbook.io/docs/lc_adminmenu/screenshots.md).

# Screenshots

Our Admin Menu have a feature that allows you to quickly take a screenshot of the player's view while spectating. If you want to use it, you need to follow a few additional steps.

{% stepper %}
{% step %}

### Install dependencies

| Resource         | Link                                            |
| ---------------- | ----------------------------------------------- |
| screenshot-basic | <https://github.com/citizenfx/screenshot-basic> |
| fmsdk            | <https://github.com/fivemanage/sdk/releases>    |

{% endstep %}

{% step %}

### Create Fivemanage Account

Go to the <https://app.fivemanage.com/login> and create your account and workspace.
{% endstep %}

{% step %}

### Go to the "Tokens" page

<div align="left"><figure><img src="/files/IMNW28HZ9x7m8WdAUnkl" alt=""><figcaption><p>fivemanage.com - Dashboard</p></figcaption></figure></div>
{% endstep %}

{% step %}

### Generate API Key

<div align="left"><figure><img src="/files/nEt7zLBysYHs8Hlavnw9" alt=""><figcaption><p>fivemanage.com - API Tokens</p></figcaption></figure></div>

<div align="left"><figure><img src="/files/pqDudhXQBTG2ZXGnFtmd" alt=""><figcaption><p>fivemanage.com - Create API Token</p></figcaption></figure></div>

<div align="left"><figure><img src="/files/PbtJE81L2uoojnSVSkDe" alt=""><figcaption><p>fivemanage.com - Copy Token</p></figcaption></figure></div>
{% endstep %}

{% step %}

### Set the token in your server.cfg

Go to your server.cfg and make sure that everything is in the right order.

{% code title="server.cfg" %}

```
set FIVEMANAGE_MEDIA_API_KEY "PASTE_YOUR_TOKEN_HERE"
set FIVEMANAGE_LOGS_API_KEY "PASTE_YOUR_TOKEN_HERE"

ensure screenshot-basic
ensure fmsdk
ensure lc_adminmenu
```

{% endcode %}
{% endstep %}

{% step %}

### (Optional) Set up the discord webhook

If you want to be able to take a look back at the screenshots you took, you can set up the discord webhook. Every time someone takes a screenshot, it will be uploaded there.

{% code title="webhook\_urls.lua" %}

```lua
local urls = {
    ...,
    screenshots = 'https://discord.com/api/webhooks/.......' -- Set your own webhook here
}
```

{% endcode %}

<div align="left"><figure><img src="/files/Y3wUYuEet0XBd8p0FcjH" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Done :)

{% endstep %}
{% endstepper %}
