getProfileByID - Total-RP/Total-RP-3 GitHub Wiki

Returns the profile with a matching profileID

TRP3_API.profile.getProfileByID(id)

Arguments

  • profileID: The ID given to your profile by TRP3

Returns

  • profile: A TRP3 profile reference

Example

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