aclGroupRemoveObject
Client-side
 Server-side
 Shared
 This function removes the given object from the given ACL group. The object can be a resource or a player. See aclGroupAddObject for more details.
OOP Syntax Help! I don't understand this!
- Method: aclgroup:removeObject(...)
Syntax
bool aclGroupRemoveObject ( aclgroup theGroup, string theObject )Required Arguments
- theGroup: The ACL group to remove the object string from.
- theObject: The object to remove from the ACL group.
Returns
- bool: result
Returns true if the object existed in the ACL and could be removed, false if it could not be removed for some reason, ie. it did not exist in the given ACL group.
Code Examples
 server   
 This example adds the command deladmin, which allows removing the specified account from the Admin group.
local function deladm(playerSource, commandName, accountName)  if (accountName) then -- Was the account name provided?    local group = aclGetGroup("Admin")    if (group) then      if (isObjectInACLGroup("user."..accountName, group)) then -- Is the account in the Admin group?        aclGroupRemoveObject(group, "user."..accountName)        outputChatBox("Account "..accountName.." succesfully removed as admin.", playerSource, 255, 255, 255)      else        outputChatBox("Account "..accountName.." is not in the Admin group.", playerSource, 255, 255, 255)      end    end  else    outputChatBox("No account name specified.", playerSource, 255, 255, 255)  endendaddCommandHandler("deladmin", deladm)See Also
ACL Functions
- aclCreate
- aclDestroy
- aclCreateGroup
- aclDestroyGroup
- aclGet
- aclGetGroup
- aclGetName
- aclGetRight
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupList
- aclGroupListACL
- aclGroupRemoveACL
- aclGroupListObjects
- aclGroupRemoveObject
- aclReload
- aclListRights
- aclObjectGetGroups
- aclList
- aclRemoveRight
- aclSetRight
- aclSave
- hasObjectPermissionTo
- isObjectInACLGroup
 
 