llGiveInventory
LSLvoid llGiveInventory(key destination, string inventory)
Give InventoryItem to destination represented by TargetID, as permitted by the permissions system.\ TargetID may be any agent or an object in the same region.
Parameters
| Type | Name | What it does |
|---|---|---|
| key | destination | The avatar or object key. |
| string | inventory | The exact name of the item in the prim's contents. |
Example
default
{
touch_start(integer n)
{
llGiveInventory(llDetectedKey(0), "Welcome Notecard");
}
}A whole folder at once
llGiveInventoryList(llDetectedKey(0), "Starter Pack", ["Shirt", "Trousers", "Boots"]);
Energy
10
The Linden Scripting Library — what every SL-compatible grid provides.
More in LSL
void llTextBox(string avatar, string message, integer chat_channel)
void llLoadURL(string avatar_id, string message, string url)
vector llDetectedTouchBinormal(integer index)
void llOwnerSay(string msg)
void llAttachToAvatarTemp(integer attachmentPoint)
string llJsonSetValue(string json, list specifiers, string value)
vector llGetAccel()
string llGetHTTPHeader(key request_id, string header)