GHI_OpenBag

Pilus edited this page Aug 11, 2015 · 1 revision
Clone this wiki locally

Syntax:

GHI_OpenBag(itemContainerGuid, itemContainerSlot, size , texture)

Arguments:

GHI_OpenBag has 3 required arguments and 1 optional argument.

size
''Number''
The number of slots in the bag. Beginning with 1 slot, the next number of available slots is 4 and increasing by 2.
texture
''String''
The background of the container. Choose from Normal, Bank, Keychain.

Aliases:

None

Example:

local bag = stack.GetItemGuid()

GHI_OpenBag(stack.GetContainerGuid(),stack.GetContainerSlot(),1,"Normal")

GHI_ProduceItem("1234567", 1, bag)

This script opens a one slot bag when used and produces an item in that slot.