No categories assigned

LUA:GetEquippedItemByID

Revision as of 20:00, 13 August 2013 by Thefoof (talk | contribs) (Created page with "This function will return an item pointer from a player. ==== Syntax ==== GetEquippedItemByID([Spawn] Player, [int32] item_id) ==== Usage ==== <pre> function hailed(NPC, Spawn)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function will return an item pointer from a player.

Syntax

GetEquippedItemByID([Spawn] Player, [int32] item_id)

Usage

function hailed(NPC, Spawn)
    GetEquippedItemByID(Spawn, 12345678)
end


When an npc with this function is hailed, this function will return the pointer to an equipped item with the id of 12345678, if the player has this item equipped.


Back to LUA Get Functions Index