playerlist
Check if players are Secret Service users.
Secret users
playerlist.is_secret_user(steamid64: string): boolean
- Returns if the given SteamID64 is a Secret user.
playerlist.get_secret_username(steamid64: string): string | nil
- Returns the Secret username for the given SteamID64.
secret.entities.for_each_controller(function(ctrl)
local sid = ctrl:steam_id64()
if sid and secret.playerlist.is_secret_user(sid) then
print(ctrl:name(), secret.playerlist.get_secret_username(sid))
end
end)