No categories assigned

LUA:GetEquippedItemByID

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