# inventory_to_prim

Put an item from inventory to in-world prim

```csharp
// See "LSL Helper Functions" page for this function
smartbotsAPI("inventory_to_prim", [
  "inventory", "877d11f0-72ad-649e-3ba2-96185b72d345",
  "prim", "e2252ccd-34f3-b341-ce7a-df49ccf3070a"
]);
```

```snippet http-api-variables-OmJyUigTgO
```

```snippet http-api-input-basic-parameters-5FcVlaJbq0 action="inventory_to_prim"
```

```snippet http-api-input-q5yvAagqsZ
inventory | yes | The inventory item UUID.
prim      | yes | The in-world prim UUID.
```

```snippet http-api-output-JAwUcmg7i7
```

# Comments

The command locates an item in bot's inventory, then locates the in-world prim and puts the item to the prim.

The prim has to be "visible" to the bot (reside nearby the bot). The command may fail if bot has just logged in or teleported, and does not "see" surrounding objects yet. It is recommended to wait 3-5 seconds after teleporting to let surrounding objects load.

# Return values

The command returns

```
result=OK
```

if item has been put to the prim successfully.