Skip to content
lsl.devlsl.devLSL Dev

llSetInventoryPermMask

functionPrivileged function
Function syntax
llSetInventoryPermMask(
  1. string item,// Name of the item in the prim's inventory.
  2. integer group,// MASK_* group (e.g., MASK_BASE, MASK_OWNER, MASK_GROUP, MASK_EVERYONE, or MASK_NEXT) to set. Values: AssetPermissionCategory
  3. integer flags// Bitfield of permissions (PERM_* flags) to set. Values: AssetPermission
);
Energy
10

Sets the given permission category to the new value on the inventory item.

How to use
llSetInventoryPermMask("", 0, 0);
categoryDescription
MASK_BASE0The base permissions.
MASK_OWNER1Current owner permissions.
MASK_GROUP2Active group permissions.
MASK_EVERYONE3Permissions everyone has.
MASK_NEXT4Permissions the next owner will have.
MASK_COMBINED16Include object inventory contents when calculating perms.
Combine with other mask flags, for instance MASK_OWNER|MASK_COMBINED
PermissionsValueDescription
PERM_ALL0x7FFFFFFFMove/Modify/Copy/Transfer permissions
PERM_COPY0x00008000Copy permission
PERM_MODIFY0x00004000Modify permission
PERM_MOVE0x00080000Move permission
PERM_TRANSFER0x00002000Transfer permission
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.