# Sits Tracker

The Sits Tracking feature allows you to monitor staff activity for your FiveM server by monitoring reactions in the EasyAdmin webhook channel.

#### OBJECTIVES

* [Setup the Sits Tracking System](#setup)
* [Understand the measures of validity which take place](#input-sanitation)
* [Understand the commands which the staff of your server should use](#commands)

<figure><img src="https://3586591898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV42S9VMaNEibIOnrBXoN%2Fuploads%2FWurtq72xK97E4HNfAO8b%2Fimage.png?alt=media&#x26;token=18c6c26d-6cd3-42ff-a87d-0bd3d3cffc07" alt=""><figcaption></figcaption></figure>

#### REQUIREMENTS

**Premium Tier** and **Deluxe Tier** subscriptions have full functionality access to this feature.

## Setup

To set first run the [`/sitstracker setup`](https://docs.elyxir.dev/commands/sitstracker/setup) command, making sure that you supply all of the arguments. "*What do they mean?"* you might ask. Well, you can read below for the roles and what each of them can do.

### Static Permissions <a href="#permissions" id="permissions"></a>

This module has a separate permissions system.&#x20;

<table><thead><tr><th width="242">Permissions</th><th data-type="checkbox">Regular Member</th><th data-type="checkbox">Staff Role</th><th data-type="checkbox">Manager Role</th></tr></thead><tbody><tr><td>Access their own sits</td><td>false</td><td>true</td><td>true</td></tr><tr><td>Access other staff's sits</td><td>false</td><td>false</td><td>true</td></tr><tr><td>Export all of the sits recorded in the database</td><td>false</td><td>false</td><td>true</td></tr><tr><td>Wipe the sits database</td><td>false</td><td>false</td><td>true</td></tr></tbody></table>

Members with the **administrator** permission bypass all of these restrictions.

### Input Sanitation

In order to avoid staff exploiting the system, we have a strict set of conditions before a reaction is counted as a sit mark.

* **\[BUILT-IN]** Only one reaction per report-message is counted
* **\[BUILT-IN]** Only one emoji per report-message is counted
* **\[BUILT-IN]** The report-message must be under 1 hour old
* **\[BUILT-IN]** Reactions must be in the report-logs channel
* **\[OPTIONAL]** Owners can configure the webhook ID to avoid people reacting to their own messages.

We highly recommend the last option. Configuring it is also easy! First, go to your EasyAdmin report logs channel. Then, copy the webhook URL of the correct webhook.

<figure><img src="https://3586591898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV42S9VMaNEibIOnrBXoN%2Fuploads%2FNYml7aocrIM4tc9L9XQ0%2Fimage.png?alt=media&#x26;token=cd238172-0dd6-4f66-8d8b-d1b603dd8e2d" alt=""><figcaption><p>You can easily copy the Webhook URL using the native button.</p></figcaption></figure>

Then, when you run the [`/sitstracker setup`](https://docs.elyxir.dev/commands/sitstracker/setup) command, supply the optional [`webhook-url`](https://docs.elyxir.dev/commands/sitstracker/setup#parameters) parameter.

## Commands

The commands used by your staff for this module are all covered in the Sits Tracking commands section. They are also listed below.

{% content-ref url="../commands/sitstracker/checksits" %}
[checksits](https://docs.elyxir.dev/commands/sitstracker/checksits)
{% endcontent-ref %}

{% content-ref url="../commands/sitstracker/checkall" %}
[checkall](https://docs.elyxir.dev/commands/sitstracker/checkall)
{% endcontent-ref %}

{% content-ref url="../commands/sitstracker/wipesits" %}
[wipesits](https://docs.elyxir.dev/commands/sitstracker/wipesits)
{% endcontent-ref %}

<figure><img src="https://3586591898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV42S9VMaNEibIOnrBXoN%2Fuploads%2FihZHDuSkgRlX0sz4MbJ3%2Fimage.png?alt=media&#x26;token=2a265a5d-a1df-4519-9f89-e12543d89fdd" alt=""><figcaption><p><a href="https://zap-hosting.com/deluxe"><strong>Click here to be redirected to our affiliate link!</strong></a></p></figcaption></figure>
