No categories assigned

LUA:GetItemCount

Revision as of 23:19, 12 December 2013 by Thefoof (talk | contribs) (Created page with "= LUA Functions: GetItemCount() = Returns the count of an item. ==== Syntax ==== GetItemCount(param1) ==== Parameters ==== ; Required - ''param1'' (Item) : ''param1'' is the ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetItemCount()

Returns the count of an item.


Syntax

GetItemCount(param1)


Parameters

Required - param1 (Item)
param1 is the item to get count from


Usage

function used(Item, Player)
    Say(Player, GetItemCount(Item))
end

When this item is used the player will say the item count in chat.