getProfileByID - Total-RP/Total-RP-3 GitHub Wiki
Returns the profile with a matching profileID
TRP3_API.profile.getProfileByID(id)
-
profileID
: The ID given to your profile by TRP3
-
profile
: A TRP3 profile reference
Using getPlayerCurrentProfileID you can retrieve the ID of your current profile, then use it to get a reference to your profile
local currentProfile = TRP3_API.profile.getPlayerCurrentProfileID()
local profile = TRP3_API.profile.getProfileByID(currentProfile)
print(profile)