# llSetInventoryPermMask

*LSL function (privileged function)*

```lsl
void llSetInventoryPermMask(string item, integer group, integer flags);
```

- `string item`: Name of the item in the prim's inventory.
- `integer group`: MASK_* group (e.g., MASK_BASE, MASK_OWNER, MASK_GROUP, MASK_EVERYONE, or MASK_NEXT) to set.
- `integer flags`: Bitfield of permissions (PERM_* flags) to set.

- Energy: 10

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

```lsl title="How to use" frame="terminal"
llSetInventoryPermMask("", 0, 0);
```

## Specification

<table>
	<tr>
		<td>

			| `category` |  | Description |
			| --- | --- | --- |
			| [MASK_BASE](/constants/MASK_BASE/) | 0 | The base permissions. |
			| [MASK_OWNER](/constants/MASK_OWNER/) | 1 | Current owner permissions. |
			| [MASK_GROUP](/constants/MASK_GROUP/) | 2 | Active group permissions. |
			| [MASK_EVERYONE](/constants/MASK_EVERYONE/) | 3 | Permissions everyone has. |
			| [MASK_NEXT](/constants/MASK_NEXT/) | 4 | Permissions the next owner will have. |
			| [MASK_COMBINED](/constants/MASK_COMBINED/) | 16 | Include object inventory contents when calculating perms.<br /> Combine with other mask flags, for instance [MASK_OWNER](/constants/MASK_OWNER/)\|[MASK_COMBINED](/constants/MASK_COMBINED/) |

		</td>
		<td>

			| Permissions | Value | Description |
			| --- | --- | --- |
			| [PERM_ALL](/constants/PERM_ALL/) | 0x7FFFFFFF | Move/Modify/Copy/Transfer permissions |
			| [PERM_COPY](/constants/PERM_COPY/) | 0x00008000 | Copy permission |
			| [PERM_MODIFY](/constants/PERM_MODIFY/) | 0x00004000 | Modify permission |
			| [PERM_MOVE](/constants/PERM_MOVE/) | 0x00080000 | Move permission |
			| [PERM_TRANSFER](/constants/PERM_TRANSFER/) | 0x00002000 | Transfer permission |

		</td>
	</tr>
</table>

## See also

### Functions

- [llGetInventoryPermMask](/functions/llGetInventoryPermMask/)

---

*Source: [LlSetInventoryPermMask](https://wiki.secondlife.com/wiki/LlSetInventoryPermMask) on the Second Life Wiki. Content from the Second Life Wiki articles LlSetInventoryPermMask (revision 1185486, 2013-12-23), Template:LSL Constants/Perm Flags (revision 1214447, 2023-09-04), Template:LSL Constants Perm Mask (revision 1217825, 2024-12-12) and Template:LSL Function/inventory (revision 1191151, 2014-06-07), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llSetInventoryPermMask/
