Skip to content

getDefaultProfile

Ben edited this page Aug 16, 2022 · 1 revision

Returns the default TRP3 profile, used when creating new profiles.

TRP3_API.profile.getDefaultProfile()

Returns

  • PR_DEFAULT_PROFILE: The default profile used by TRP3 when creating new profiles. Unlikely to ever be used outside of this context.

Example

This function doesn't have much use outside of TRP3 itself, below is an example as to how it is used.

-- Creating a new profile using the default profile as a template
local defaultProfile = TRP3_API.profile.getDefaultProfile

local function createProfile(profileName)
	return duplicateProfile(defaultProfile, profileName);
end
Clone this wiki locally