Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
GHI_ConsumeItem( guid, amount)
GHI_ConsumeItem has 2 required arguments.
- The GUID of the item to be consumed. This can be found by using the inspect tool in the GHI main backpack.
- This the amount of the specified item to be consumed.
if GHI_CountItem(1234567) >1 then
This script checks if you have item GUID 1234567 and more than one. If so it then consumes one of it.