# Server

## PlayerIdentifier

Function to get player identifier by its string type with multiple options

```lua
function HRLib.PlayerIdentifier(
    playerId: integer?,
    identifier: string|'all'|string[],
    removeNames: boolean?
    isArray: boolean?
): ...|string|string[]?
```

Parameters description

* `playerId` - the player's server Id
* `identifier` - the identifier type\
  Available types:\
  `'steam'`\
  `'license'`\
  `'license2'`\
  `'fivem'`\
  `'discord'`\
  `'live'`\
  `'xbl'`\
  `'ip'`\
  `'all'` - to get all the identifiers of the player (these above `'all'`)\
  `string[]` - list of multiple identifiers types (from the ones above `'all'`)
* `removeNames` - sets whether or not the identifiers names before the identifier itself must be removed
* `isArray` - sets whether or not the return value must be as an array or not

## PlayerIdentifierByIndex

Function to get player identifier by its string type with multiple options

```lua
function HRLib.PlayerIdentifier(
    playerId: integer?,
    identifier: integer|'all'|integer[],
    removeNames: boolean?
    isArray: boolean?
): ...|string|string[]?
```

Parameters description

* `playerId` - the player's server Id
* `identifier` - the identifier type\
  Available types:\
  `0-7` - the index is the identifier type's index\
  `'all'` - to get all the identifiers of the player\
  `integer[]` - list of multiple identifiers types (from 0 to 7 as an integer)
* `removeNames` - sets whether or not the identifiers names before the identifier itself must be removed
* `isArray` - sets whether or not the return value must be as an array or not

## PlayerServerIdByIdentifier

Function to get the player server Id of the player which owns the given identifier\
(no matter which identifier you give as long as it exists for a player in the server)

```lua
function HRLib.PlayerServerIdByIdentifier(identifier: string): integer? playerId
```

Parameters description

* `identifier` - the identifier of the player you want to know the player server Id of

Return description

* `playerId` - contains the player's server Id if exists according to the identifier
