isProfileNameAvailable - Total-RP/Total-RP-3 GitHub Wiki
Returns whether or not a selected profile name is available
TRP3_API.profile.isProfileNameAvailable(profileName)
-
profileName
: The profile name set by the user in TRP3
-
availability
: Will returntrue
if available, elsefalse
, along with the ID of the conflicting profile.
Checking if the profile name is used already
local profileName = "Ghost"
local isAvailable = TRP3_API.profile.isProfileNameAvailable(profileName)
print(isAvailable)