Skip to content

isProfileNameAvailable

Ben edited this page Aug 16, 2022 · 1 revision

Returns whether or not a selected profile name is available

TRP3_API.profile.isProfileNameAvailable(profileName)

Arguments

  • profileName: The profile name set by the user in TRP3

Returns

  • availability: Will return true if available, else false, along with the ID of the conflicting profile.

Example

Checking if the profile name is used already

local profileName = "Ghost"
local isAvailable = TRP3_API.profile.isProfileNameAvailable(profileName)

print(isAvailable)
Clone this wiki locally