> For the complete documentation index, see [llms.txt](https://docs.ninjutsugames.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ninjutsugames.com/game-creator-2/loot-locker/leaderboards.md).

# Leaderboards

To use leaderboards you need to create in LootLocker's dashboard first, you can follow this [**guide**](https://docs.lootlocker.com/game-systems/leaderboards/create-a-leaderboard) to do it.

{% hint style="info" %}
To learn more about Leaderboards you can go to LootLocker's documentation [**here**](https://docs.lootlocker.com/game-systems/leaderboards)
{% endhint %}

<figure><img src="https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-0a63b5291a77d96c9d331e524fc1b937326a4488%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## UI

To show a UI you have to use the **Loot Locker Leaderboard UI** component

<figure><img src="https://3895715781-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDchaEIEhpBAh2gCe06%2Fuploads%2Fgit-blob-03953ad4520bf3f2d798c0f91c34714620f24a6a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="201">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>Leaderboard Id</td><td>Key of the leaderboard to get entries for</td></tr><tr><td>Count</td><td>How many entries to get</td></tr><tr><td>After</td><td>How many after the last entry to receive</td></tr><tr><td>Show Player if Not Present</td><td>If enabled and if player is not part of the list a new entry will be generated</td></tr><tr><td>Player Content</td><td>The container for the player entry</td></tr><tr><td>Empty Player Name</td><td>If player has no name this will be displayed instead</td></tr><tr><td>Empty Player Rank</td><td>If player has no rank in the leaderboard this will be displayed instead</td></tr><tr><td>Prefab Cell</td><td>The leaderboard entry UI</td></tr><tr><td>Content</td><td>The container for all leaderboard entries</td></tr><tr><td>Regular Background Color</td><td>A color used for the background of regular entries</td></tr><tr><td>Alternate Background Color</td><td>A color used to alternate regular entries color</td></tr><tr><td>Regular Text Color</td><td>Text color for regular entries</td></tr><tr><td>Player Text Color</td><td>Text color for the player entry</td></tr></tbody></table>
