Difference between revisions of "LUA:GetItemCount"

(Created page with "= LUA Functions: GetItemCount() = Returns the count of an item. ==== Syntax ==== GetItemCount(param1) ==== Parameters ==== ; Required - ''param1'' (Item) : ''param1'' is the ...")
 
(No difference)

Latest revision as of 23:19, 12 December 2013

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.