# playerlist

Manages players in your current game session.


# Functions

# playerlist.add_friend(steamid64: string)

playerlist.add_friend(steamid64: string)
  • Adds a specified SteamID64 to the friend list.

# playerlist.remove_friend(steamid64: string)

playerlist.remove_friend(steamid64: string)
  • Removes a specified SteamID64 from the friend list.

# playerlist.is_friend(steamid64: string): boolean

playerlist.is_friend(steamid64: string): boolean
  • Checks if the specified SteamID64 is in the friend list and returns true if the player is a friend, otherwise false.

# playerlist.add_priority(steamid64: string)

playerlist.add_priority(steamid64: string)
  • Adds a specified SteamID64 to the priority list.

# playerlist.remove_priority(steamid64: string)

playerlist.remove_priority(steamid64: string)
  • Removes a specified SteamID64 from the priority list.

# playerlist.is_priority(steamid64: string): boolean

playerlist.is_priority(steamid64: string): boolean
  • Checks if the specified SteamID64 is in the priority list and returns true if the player is a friend, otherwise false.

# playerlist.is_secret_user(steamid64: string): boolean

playerlist.is_secret_user(steamid64: string): boolean
  • Returns true if the specified SteamID64 is a secret user (anon mode off), otherwise false.

# playerlist.get_secret_username(steamid64: string): string | nil

playerlist.get_secret_username(steamid64: string): string | nil
  • Returns the secret username for the specified SteamID64. Returns nil if the user is not connected or is anonymous.