Skip to content

FindPlayerItem

The player’s tagged item with that id.

FindPlayerItem(pid, id)
Parameter Type
pid number the player
id string the item’s id

table - {class=, amount=1, health=, worn=, id=, name=, text=, weight=, price=, model=} (weight, price and model only when it has its own), or nil when the player holds no item with that id

if FindPlayerItem(pid, "gate-key") then SetDoorState(GATE, true, false) end

GivePlayerTaggedItem · SetPlayerItemTag · GetPlayerInventory · SetDoorKey · the Items and inventory group of the index