No categories assigned
LUA:GetEquippedItemByID
- Last edited 12 years ago by I need to Update My Profile
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.