mp.friendsawait mp.friends.list(playerToken)
Returns the player's friend list with presence.
await mp.friends.lookup(playerToken, playerTag)
Finds a player by Name#tag — the string shown at registration.
await mp.friends.request(playerToken, { playerTag?, playerId? })
Sends a friend request by tag or id.
await mp.friends.accept(playerToken, playerId)
await mp.friends.decline(playerToken, playerId)
await mp.friends.remove(playerToken, playerId)
Answer incoming requests and manage the list.
await mp.friends.steam(playerToken, steamIds)
Imports Steam friends — array of SteamID64 strings; matches players who registered with Steam.
await mp.friends.invite(playerToken, playerId)
await mp.friends.invites(playerToken)
Sends a game/room invite; lists pending invites.
await mp.friends.acceptInvite(playerToken, inviteId)
await mp.friends.declineInvite(playerToken, inviteId)
Answers an invite by its invite_id.
Every player gets a shareable #tag: lookup resolves it to a player id, and request sends a friend request by tag or id. Requests sit pending until the other side accepts or declines; once accepted the relationship appears in both players' lists together with presence, so you can show who is online.
Invites ride the same graph — a friend can be pulled straight into a matchmaking lobby or a room, and pending invites can be listed and answered by id. Steam-enabled games can additionally import the Steam friends list: pass SteamID64 strings and the API matches them to players who registered through Steam.