deleteProfile - Total-RP/Total-RP-3 GitHub Wiki

Deletes a TRP3 profile

TRP3_API.profile.deleteProfile(profileID)

Arguments

  • profileID: The ID given to your profile by TRP3.

Example

Use a profileID to delete an inactive profile. You can't delete the currently active profile, the example requires you to switch profiles in-game. Use caution with this function.

local currentProfile = TRP3_API.profile.getPlayerCurrentProfileID()
--must swap profiles before deleting the profile, be ABSOLUTELY sure you want to delete the targeted profile
TRP3_API.profile.deleteProfile(currentProfile)
⚠️ **GitHub.com Fallback** ⚠️