No categories assigned

LUA:GetItemID

Revision as of 22:58, 19 August 2019 by Jabantiz (talk | contribs) (Created page with "{{PageHeaderChild|LUA|GetItemID}} = LUA Functions: GetItemID() = Gets the DB ID of the given item ==== Syntax ==== GetItemID(param1) ==== Parameters ==== ; Required - ''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.