Difference between revisions of "LUA:GetItemID"

(Created page with "{{PageHeaderChild|LUA|GetItemID}} = LUA Functions: GetItemID() = Gets the DB ID of the given item ==== Syntax ==== GetItemID(param1) ==== Parameters ==== ; Required - ''...")
 
(No difference)

Latest revision as of 22:58, 19 August 2019

LUA - GetItemID

Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker


LUA Functions: GetItemID()

Gets the DB ID of the given item


Syntax

GetItemID(param1)


Parameters

Required - param1 (Item)
param1 is the item we want the id for


Usage

    local id = GetItemID(Item)
    Say(Player, "Item id is: " . id)

Has the player say the id of the item.