Skip to content

duplicateProfile

Ben edited this page Aug 16, 2022 · 1 revision

Duplicates a TRP3 profile.

TRP3_API.profile.duplicateProfile(myProfile, newProfileName)

Arguments

  • duplicatedProfile: The profile you want to duplicate. Accepts both profileID and profileName.
  • profileName: The name of the new profile, must be unused.

Returns

  • profileID: The new profile's ID.

Example

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)
Clone this wiki locally