GetPlayerEquipment
What the player’s client reports as equipped - clothing, armour, the weapons in the slots.
Class GUIDs, as the client last reported them. The damage model reads the armour from here; GetPlayerWeapon names the
weapon it charges the hits to.
Syntax
Section titled “Syntax”GetPlayerEquipment(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”table - a list of item class GUIDs; {} before the first report
Example
Section titled “Example”for _, class in ipairs(GetPlayerEquipment(pid)) do local info = GetItemInfo(class) if info and info.category == "Helmet" then hasHelmet = true endendSee also
Section titled “See also”GetPlayerInventory · GetPlayerWeapon · GetItemInfo · the Items and inventory group of the index
