luaapi:px_profman
This is an old revision of the document!
Profile manager metatable functions
Function | Description |
---|---|
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, nPermissionId) | Return true if permission is true, or nil. |
ProfMan.GetProfilePermissions(nProfileNumber) | Return profile permissions table. |
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. |
luaapi/px_profman.1350188656.txt.gz · Last modified: 14/10/2012 04:24 by ppk