Container.canSpend

Checks if sm.container.spend is allowed.

Kind: Function

Environments: Game

Game

container:canSpend( itemUuid, quantity )

Open the full Game reference

Parameters:

Name Type Description
container Container The container.
itemUuid Uuid The uuid of the item.
quantity integer The number of items.

Returns:

Type Description
boolean Indicates if the action is possible.