# getPlayerIdentifiers (Server)

> Lists all of the player's identifiers, each as `type:value`, for example `steam:110000112345678` and `discord:80351110224678912`.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Server
- **Category**: Players and accounts
- **URL**: https://wiki.mymp.gg/en/getPlayerIdentifiers

## Syntax

```lua
table|false getPlayerIdentifiers(player player)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `player` | `player` | The player. |

## Returns

A table of the identifiers, or `false` if the player has no entity on the server.

## Example

```lua
addEventHandler("onPlayerJoin", root, function()
    for _, identifier in ipairs(getPlayerIdentifiers(source)) do
        outputServerLog(getPlayerName(source) .. ": " .. identifier)
    end
end)
```

### Note

The `discord` one comes from the player's Discord app and is not verified. The `steam` one is only verified when the server has a `steam_api_key`.

## See also

- [getPlayerIdentifier (Server)](https://wiki.mymp.gg/en/getPlayerIdentifier.md): Returns one of the player's identifiers of a type, such as steam or discord.
- [getPlayerAccount (Server)](https://wiki.mymp.gg/en/getPlayerAccount.md): Returns the MYMP account the player joined with.
