FetchRoles
Server
Lyn.Player.FetchRoles(string steamid64, function callback)FunctionDescription
Fetches the roles of the player using their SteamID64.
Params
Example:
Lyn.Player.FetchRoles("76561198261855442", function(err, roles)
if err then
-- database error already printed in console by Lyn
print("Error fetching roles")
return
end
PrintTable(roles)
-- Output:
--[[
{
{
-- Permanent role
expires_at = 0,
role = "user"
},
{
-- Temporary role
expires_at = 1858380144,
role = "admin"
}
}
]]
end)