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

# HRWhitelist

A standalone script that provides discord whitelist to a server with logs

## Installation

* Download the dependency [HRLib](https://github.com/HRScripts/HRLib/releases/latest) - [documentation](broken://pages/Ep5kSHLO83LleEO9rVP4)
* Download [HRWhitelist](https://github.com/HRScripts/HRWhitelist)
* Write this in your server.cfg:\
  `start HRLib`\
  `start HRWhitelist`

## Config Preview

```lua
local config = {}

config.logs = {
    enable = true,
    webhook = 'https://discord.com/api/webhooks/.........../.................',
    botName = 'Test',
    title = 'Connecting Log',
    msg = 'Player Name: %s\nPlayer Discord: %s\n\n\nSteam Hex: %s\nLicense: %s\nLicense2: %s\nFivem Id: %s',
    colour = 000099,
    identifiersToShow = {
        'steam',
        'license',
        'license2',
        'fivem'
    } -- Available identifiers: 'steam', 'license', 'license2', 'fivem', 'discord', 'live', 'xbl', 'ip'
}

config.botInfo = {
    guildId = 0000000000000000000,
    botToken = '....................'
}

config.whitelistedRoles = {
    0000000000000000000
}

config.authorizedBotMsg = 'Bot %s'
```

## Logs Preview

<figure><img src="https://1248811810-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXqbA5Sf27l8s5N2ZDHzg%2Fuploads%2Fc3maKQlMszN1htI8Thn5%2Fimage.png?alt=media&amp;token=ecabab4b-981f-440a-a032-119968a7e132" alt=""><figcaption></figcaption></figure>
