Skip to content

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)

Arguments

Returns

  • data: A reference to the requested data.

Example

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)

Clone this wiki locally