# ✨NEW✨ Inventory

## <mark style="color:red;">Server Owner</mark>

The table below contains a list of **Inventory Commands** available for <mark style="color:red;">**Server Owners**</mark>.

<table data-full-width="true"><thead><tr><th width="79.9205322265625">Type</th><th width="392.5714111328125">Command</th><th width="163.6241455078125">Input</th><th width="415.391845703125">Description</th><th>Default</th></tr></thead><tbody><tr><td><h3><strong>🎮</strong></h3></td><td><mark style="color:red;">inventory.givecraftmatadv</mark></td><td><code>none</code></td><td>Give yourself advanced crafting materials.</td><td><code>N/A</code></td></tr><tr><td><h3><strong>🎮</strong></h3></td><td><mark style="color:red;">inventory.givecraftmatbasic</mark></td><td><code>none</code></td><td>Give yourself basic crafting materials.</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟💥</strong></h3></td><td><mark style="color:red;">vendingmachine.</mark><br><mark style="color:red;">deletevendingmachinesellorderbyids</mark></td><td><p><code>“item ID”</code> </p><p><code>“X” “Y” “Z”</code></p></td><td>Deletes a sell order for an item using its “Item ID”.<br><code>”X” - “0/1”</code> - Delete the item if it is a sell order<br><code>”Y” - “0/1”</code> - Delete the item if it is a buy order<br><code>”Z” - “0/1”</code> - Delete all (requires <code>“X” &#x26; “Y”</code> = <code>1</code>)</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟💥</strong></h3></td><td><mark style="color:red;">vendingmachine.</mark><br><mark style="color:red;">deletevendingmachinesellorderbyname</mark></td><td><p><code>“item name”</code> </p><p><code>“X” “Y” “Z”</code></p></td><td>Deletes a sell order for an item using its “Item Name”.<br><code>”X” - “0/1”</code> - Delete the item if it is a sell order<br><code>”Y” - “0/1”</code> - Delete the item if it is a buy order<br><code>”Z” - “0/1”</code> - Delete all (requires <code>“X” &#x26; “Y”</code> = <code>1</code>)</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟💥</strong></h3></td><td><mark style="color:red;">vendingmachine.</mark><br><mark style="color:red;">listvendingmachinesellorderids</mark></td><td><code>none</code></td><td>Outputs all sell orders for all vending machines.</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟💥</strong></h3></td><td><mark style="color:red;">vendingmachine.</mark><br><mark style="color:red;">validatevendingmachinesellorders</mark></td><td><p><code>“item name”</code> <br><br></p><p><code>“X(0/1)” “Y(0/1)”</code></p></td><td>Checks to see if the server’s item manager has the item definition of the sell order.<br><code>”X” - “0/1”</code> - Check sell orders<br><code>”Y” - “0/1”</code> - Check buy orders</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟✨</strong></h3></td><td><mark style="color:red;">npcvendingmachine.dynamicpricingenabled</mark></td><td><code>"0/1"</code></td><td>Disables/enables the Dynamic Vendor Pricing feature.</td><td><code>"1"</code></td></tr><tr><td><h3><strong>📟✨</strong></h3></td><td><mark style="color:red;">npcvendingmachine.maximumpricemultiplier</mark></td><td><code>"number"</code></td><td>Affects the maximum relative price of items in NPC Vending Machines.</td><td><code>"2"</code></td></tr><tr><td><h3><strong>📟✨</strong></h3></td><td><mark style="color:red;">npcvendingmachine.minimumpricemultiplier</mark></td><td><code>"number"</code></td><td>Affects the minimum relative price of items in NPC Vending Machines.</td><td><code>"0.5"</code></td></tr><tr><td><h3><strong>📟✨</strong></h3></td><td><mark style="color:red;">npcvendingmachine.pricedecreaseamount</mark></td><td><code>"number"</code></td><td>The amount of decrease that an underselling item will receive on average, where 0.05 = 5%</td><td><code>"0.05"</code></td></tr><tr><td><h3><strong>📟✨</strong></h3></td><td><mark style="color:red;">npcvendingmachine.priceincreaseamount</mark></td><td><code>"number"</code></td><td>The amount of increase that an overselling item will receive on average, where 0.1 = 10%</td><td>"0.1"</td></tr><tr><td><h3><strong>📟✨</strong></h3></td><td><mark style="color:red;">npcvendingmachine.priceupdatefrequencydefault</mark></td><td><code>"number"</code></td><td>Defines how many hours it takes for dynamic pricing changes to take effect.</td><td><code>"3"</code></td></tr><tr><td><h3><strong>📟✨</strong></h3></td><td><mark style="color:red;">npcvendingmachine.printallpricechanges</mark></td><td><code>none</code></td><td>Prints all vending machine price alterations on a server to console.</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟✨</strong></h3></td><td><mark style="color:red;">npcvendingmachine.resetdynamicpricing</mark></td><td><code>none</code></td><td>Resets the state of all discounts and surcharges from NPC vending machines to default.</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟✨</strong></h3></td><td><mark style="color:red;">npcvendingmachine.startingpricemultiplier</mark></td><td><code>"number"</code></td><td>What is the discount or surcharge immediately present upon the wiping of a server.</td><td><code>"2"</code></td></tr></tbody></table>

### Vending Machine Example

> ### *vendingmachine.deletevendingmachinesellorderbyname "rifle.ak" 1 0 0*
>
> This command will remove all Assault Rifles from all vending machine sell orders on the map, but will do nothing if Assault Rifles are a buy item only.

## <mark style="color:orange;">Server Admin</mark>

The table below contains a list of **Inventory Commands** available for <mark style="color:orange;">**Server Admins**</mark> and above.

<table data-full-width="true"><thead><tr><th></th><th width="268">Command</th><th width="150">Input</th><th width="429">Description</th><th>Default</th></tr></thead><tbody><tr><td><h3><strong>🎮</strong></h3></td><td><mark style="color:orange;">entity.spawnitem</mark></td><td><code>"item name"</code></td><td>Spawns an “item” where you’re looking.<br>Note that this is not the same as <code>entity.spawn</code></td><td><code>N/A</code></td></tr><tr><td><h3><strong>🎮</strong></h3></td><td><mark style="color:orange;">inventory.clearall</mark></td><td><code>none</code></td><td>Completely empties your inventory.</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟🎮</strong></h3></td><td><mark style="color:orange;">inventory.cleardefaultitem</mark></td><td><code>none</code></td><td>Clears the ‘default items’ list, meaning that players will revert to a Rock &#x26; Torch.</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟🎮</strong></h3></td><td><mark style="color:orange;">inventory.clearitemfromplayers</mark></td><td><code>none</code></td><td>Removes the specified “item” from everyone’s inventories.</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟🎮</strong></h3></td><td><mark style="color:orange;">inventory.removefromcorpses</mark></td><td><code>none</code></td><td>Removes the specified “item” from all corpses.</td><td><code>N/A</code></td></tr></tbody></table>

## <mark style="color:blue;">Server Moderator</mark>

The table below contains a list of **Inventory** **Commands** available for <mark style="color:blue;">**Server Moderator**</mark> and above.

<table data-full-width="true"><thead><tr><th></th><th width="210">Command</th><th width="155">Input</th><th width="476">Description</th><th>Default</th></tr></thead><tbody><tr><td><h3><strong>🎮</strong></h3></td><td><mark style="color:blue;">inventory.give</mark></td><td><code>"item name"</code></td><td>Gives yourself a specified “item”.</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟🎮</strong></h3></td><td><mark style="color:blue;">inventory.giveall</mark></td><td><code>"item name"</code></td><td>Gives everyone a specified “item”.</td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟🎮</strong></h3></td><td><mark style="color:blue;">inventory.givedrop</mark></td><td><code>[0] [1] [2] [3] [4] [5] [6] [7]</code></td><td>Drops item specified at player's location.<br><br>Replace the bracketed expressions with the following:<br><code>0</code> - Player ID <code>Required</code><br><code>1</code> - Item shortname <code>Required</code><br><code>2</code> - Item Amount <code>Default: 1</code><br><code>3</code> - Stack Amount <code>Default: 1</code><br><code>4</code> - 0<br><code>5</code> - Condition <code>Default: 1</code><br><code>6</code> - Throw Spray <code>Default: 35</code><br><code>7</code> - Throw Range <code>Default: 4</code></td><td><code>N/A</code></td></tr><tr><td><h3><strong>📟🎮</strong></h3></td><td><mark style="color:blue;">inventory.giveto</mark></td><td>"item name"</td><td>Gives a target “player” a specified “item”.</td><td><code>N/A</code></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rust-console-edition.gitbook.io/community-servers/commands/utility/new-inventory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
