Server Exports

GetDiscordID(playerId)
GetSteamID(playerId)
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)

Last updated