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

# Server Exports

```lua
GetDiscordID(playerId)
GetSteamID(playerId)
```

```lua
local lib = exports['jl_lib']:GetLib()

RegisterServerEvent('jl_exampleevent:server:example', function()
    local playerId = source
    local discord = lib.GetDiscordID(playerId)
    local steam = lib.GetSteamID(playerId)

    local identifierTable = {
        dc = discord,
        st = steam,
    }

    print("Discord ID: " .. (discord or "None"))
    print("Steam ID: " .. (steam or "None"))

    TriggerClientEvent('jl_exampleevent:client:example', playerId, identifierTable)
end)
```
