Description ​
Displays the item on the dispenser screen.
Arguments ​
string
- The item name.bool
- Whether to display the item's amount.
Example ​
msc
using Peripheral;
using Console;
using Application;
using Util;
using Array;
Dispenser dispenser = Peripheral.GetConnectedDispenser();
if(dispenser.IsValid() == false){
// If the dispenser was not found, quit.
Application.Exit();
}
// Tells the dispenser to display glocks with the stock amount visible.
// To find the item name of a weapon, right click copy the weapon in Q menu Weapons Tab.
dispenser.DisplayItem("vguns_glockp80", true);