getData - Total-RP/Total-RP-3 GitHub Wiki

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)
⚠️ **GitHub.com Fallback** ⚠️