Skip to main content

RxFriendUtils

Utilities for observing the local player's friends.

Functions

observeFriendsInServerAsBrios

RxFriendUtils.observeFriendsInServerAsBrios(playerPlayer | nil) → Observable<Brio<Player>>

Observe friends in the current server (not including the LocalPlayer!), useful for social GUIs. The lifetimes exist for the whole duration another player is a friend and in your server. This means if a player is unfriended + friended multiple times per session, they will have emitted multiple friend lifetimes.

Show raw api
{
    "functions": [
        {
            "name": "observeFriendsInServerAsBrios",
            "desc": "Observe friends in the current server (not including the LocalPlayer!), useful for social GUIs.\nThe lifetimes exist for the whole duration another player is a friend and in your server.\nThis means if a player is unfriended + friended multiple times per session, they will have emitted multiple friend lifetimes.",
            "params": [
                {
                    "name": "player",
                    "desc": "",
                    "lua_type": "Player | nil"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<Player>>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 27,
                "path": "src/friendutils/src/Shared/RxFriendUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "RxFriendUtils",
    "desc": "Utilities for observing the local player's friends.",
    "source": {
        "line": 6,
        "path": "src/friendutils/src/Shared/RxFriendUtils.lua"
    }
}