-
Notifications
You must be signed in to change notification settings - Fork 24
getData
Ghost - Ben edited this page Dec 2, 2022
·
3 revisions
Returns specific data about the currently active TRP profile.
TRP3_API.profile.getData(fieldPath, profileRef)-
fieldPath: Path to the desired data within the TRP profile, see Profile Structure. -
profileRef: [Optional] profileID or profileName | Uses getPlayerCurrentProfile if no profileRef is defined.
-
data: A reference to the requested data.
You can use this method to get the "currently" section of your profile. To better understand the path variable, see Profile Structure.
local path = "player/character"
local currently = TRP3_API.profile.getData(path).CU
print(currently)