# INVENTORY_SETTING

*LSL constant*

```lsl
integer INVENTORY_SETTING = 56;
```

Constant groups: [InventoryType](/constants/groups/InventoryType/)

Used with [Inventory](https://wiki.secondlife.com/wiki/Category:LSL_Inventory) functions and specifies inventory items of SETTING type will be retrieved by the function.

## Examples

<details open>
<summary>Example 1</summary>

```lsl
//Give all setting items from prim's contents to anyone touching this object
default
{
    touch_start(integer total_number)
    {
        // get the UUID of the person touching this object
        key user = llDetectedKey(0);
        integer count = llGetInventoryNumber(INVENTORY_SETTING);
        while (count--)
        // Give them each setting object found in the object's contents
            llGiveInventory(user, llGetInventoryName(INVENTORY_SETTING, count) );
    }
}
```

</details>

## See also

### Constants

- [INVENTORY_NONE](/constants/INVENTORY_NONE/)
- [INVENTORY ALL](/constants/INVENTORY_ALL/)
- [INVENTORY ANIMATION](/constants/INVENTORY_ANIMATION/)
- [INVENTORY BODYPART](/constants/INVENTORY_BODYPART/)
- [INVENTORY CLOTHING](/constants/INVENTORY_CLOTHING/)
- [INVENTORY GESTURE](/constants/INVENTORY_GESTURE/)
- [INVENTORY LANDMARK](/constants/INVENTORY_LANDMARK/)
- [INVENTORY NOTECARD](/constants/INVENTORY_NOTECARD/)
- [INVENTORY OBJECT](/constants/INVENTORY_OBJECT/)
- [INVENTORY SCRIPT](/constants/INVENTORY_SCRIPT/)
- [INVENTORY SOUND](/constants/INVENTORY_SOUND/)
- [INVENTORY TEXTURE](/constants/INVENTORY_TEXTURE/)

### Functions

- [llGetInventoryType](/functions/llGetInventoryType/)
- [llGetInventoryNumber](/functions/llGetInventoryNumber/)
- [llGetInventoryName](/functions/llGetInventoryName/)

---

*Source: [INVENTORY SETTING](https://wiki.secondlife.com/wiki/INVENTORY_SETTING) on the Second Life Wiki. Content from the Second Life Wiki article INVENTORY SETTING (revision 1208001, 2019-02-01), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/INVENTORY_SETTING/
