# ProfMan metatable

ProfMan.AddProfile(sProfileName) | - Add profile to profilemanager, return nProfileNumber if success or nil when profile already exist.
ProfMan.RemoveProfile(sProfileName) | - Remove profile from profilemanager, return true if success or nil when profile not exist or is in use.
ProfMan.MoveDown(nProfileNumber) | - Move profile down. Return nil when failed, true if success.
ProfMan.MoveUp(nProfileNumber) | - Move profile up. Return nil when failed, true if success.
ProfMan.GetProfile(sProfileName/nProfileNumber) | - Return profile as profile table or nil if not exist.
ProfMan.GetProfiles() | - Return table with profiles as profile tables.
ProfMan.GetProfilePermission(nProfileNumber, iPermissionId) | - Return true if permission is true, or nil.
ProfMan.GetProfilePermissions(nProfileNumber) | - Return table with profile permissions.
ProfMan.SetProfileName(nProfileNumber, sProfileName) | - Change profile name, return true if success or nil if profile not exist.
ProfMan.SetProfilePermission(nProfileNumber, nPermissionId, bBoolean) | - Change profile permission, return true if success or nil if profile not exist.
ProfMan.Save() | - Save profiles.