Skip to content

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.

GetPlayerEquipment(pid)
Parameter Type
pid number the player

table - a list of item class GUIDs; {} before the first report

for _, class in ipairs(GetPlayerEquipment(pid)) do
local info = GetItemInfo(class)
if info and info.category == "Helmet" then hasHelmet = true end
end

GetPlayerInventory · GetPlayerWeapon · GetItemInfo · the Items and inventory group of the index