-
Notifications
You must be signed in to change notification settings - Fork 18
duplicateProfile
Ben edited this page Aug 16, 2022
·
1 revision
Duplicates a TRP3 profile.
TRP3_API.profile.duplicateProfile(myProfile, newProfileName)
-
duplicatedProfile
: The profile you want to duplicate. Accepts both profileID and profileName. -
profileName
: The name of the new profile, must be unused.
-
profileID
: The new profile's ID.
Get current player profile, then make a copy with the name "Ghost"
local profilesAPI = TRP3_API.profile;
local myProfile = profilesAPI.getPlayerCurrentProfileID()
local newProfileName = "Ghost"
local newProfile = profilesAPI.duplicateProfile(myProfile, newProfileName)