---
description: This feature is part of the Statistic Channels Module.
---

# Statistic Channels

This neat module allows you to display statistics which are automatically refreshed within discord channel names with some intuitive parameters which integrate with FiveM as well as other Elyxir features.

#### OBJECTIVES

* [Create a Statistic Channel](#creating-statistics-channels)
* [Edit a Statistic Channel](#editing-statistics-channels)
* [Delete a Statistic Channel](#deleting-statistics-channels)

<figure><img src="https://3586591898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV42S9VMaNEibIOnrBXoN%2Fuploads%2FUIqY4RLD3a5eV6FD4jRU%2Fdeluxe-DiscordCanary_q0l5IiLEmq.png?alt=media&#x26;token=97871438-20da-4187-a620-000a71e31d3b" alt=""><figcaption><p>A snapshot of potential behaviour achievable with our stats channels</p></figcaption></figure>

## Creating Statistics Channels

To create a new statistic channel, after enabling the module you need to run the [`/statschannel create` ](../commands/statschannel/create)command. When specifying the [`text` ](../../commands/statschannel/create#parameters)parameter, in other words the channel name, you can use the following parameters:

<figure><img src="https://3586591898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV42S9VMaNEibIOnrBXoN%2Fuploads%2FcQTAJfJeOw6Y6805dMaL%2Fdeluxe-DiscordCanary_VZBy6WCyCj.png?alt=media&#x26;token=6f9acd8f-fbef-4077-9383-a4845d9ee77b" alt=""><figcaption><p>You are fully in control of the channel name and formatting, the possibilities are limitless!</p></figcaption></figure>

{% code fullWidth="false" %}
```
{guild.name}               - The name of the discord server
{onlineMembers}            - The number of online members within the Discord server 
{memberCount}              - The total number of members within the Discord server
{withRole:role_id}         - The number of people with a specified role
{onlineRole:role_id}       - The number of online member with a specified role
{fivemPlayers}        *    - Number of active players in the specified FiveM server
{fivemMax}            *    - Player cap for the specified FiveM server
{statusIndicator}     *    - An emoji for the status of the specified FiveM server
{ticketsOpen}              - The number of tickets currently open
{ticketsCount}             - The total number of created tickets in this server
{gangCount}                - The number of gangs within the FiveM server
```
{% endcode %}

{% hint style="info" %}
Parameters marked with `*`  require the [FiveM Integration](../fivem-integration) to be configured.
{% endhint %}

## Editing Statistics Channels

You can edit existing statistics channel formats using the [`/statschannel edit`](../commands/statschannel/edit)  command. When specifying the [`text` ](../../commands/statschannel/edit#parameters) parameter, you can use the same parameters as listed above.

## Deleting Statistics Channels

To remove a statistics channel, simply run the [`/statschannel delete`](../commands/statschannel/delete) command, specifying the statistics channel you wish to delete.

<figure><img src="https://3586591898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV42S9VMaNEibIOnrBXoN%2Fuploads%2FIMjYsxabvOoKIAs56zEZ%2Fimage.png?alt=media&#x26;token=f153a14c-0fba-4007-aed8-01abf5126935" 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>
