Skip to content

profileRelation

Ben edited this page Aug 16, 2022 · 1 revision

This section holds information about your relationship with other characters

Structure

["profileID"] = "RELATIONSHIP_LEVEL

Fields

  • profileID: ID of the profile you hold the relationship with, or a player name if the player is using an addon other than TotalRP3
  • relationship_level: The level of the relationship, possible values are "UNFRIENDLY", "NONE", "NEUTRAL", "BUSINESS", "FRIEND, "LOVE", "FAMILY"

Accessing Relationship Data

path: "relation"

local relationData = TRP3_API.profile.getData("relation")

local relationshipOne = relationData["profileIDHere"]
Clone this wiki locally