# INVENTORY_TEXTURE

*LSL constant*

```lsl
integer INVENTORY_TEXTURE = 0;
```

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

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

## Examples

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

```lsl
//Give a texture to anyone touching this object
default
{
    touch_start(integer total_number)
    {
        // get the UUID of the person touching this object
        key user = llDetectedKey(0);
        // Give them the first texture found in the object's contents
        llGiveInventory(user, llGetInventoryName(INVENTORY_TEXTURE, 0) );
    }
}
```

</details>

## See also

### Constants

- [PRIM_TEXTURE](/constants/PRIM_TEXTURE/)
- [INVENTORY_ALL](/constants/INVENTORY_ALL/)
- [INVENTORY NONE](/constants/INVENTORY_NONE/)
- [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 SETTING](/constants/INVENTORY_SETTING/)
- [INVENTORY SOUND](/constants/INVENTORY_SOUND/)
- [INVENTORY MATERIAL](/constants/INVENTORY_MATERIAL/)

### Functions

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

---

*Source: [INVENTORY TEXTURE](https://wiki.secondlife.com/wiki/INVENTORY_TEXTURE) on the Second Life Wiki. Content from the Second Life Wiki article INVENTORY TEXTURE (revision 1212559, 2022-10-05), CC BY-SA 3.0.*

---

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