Skip to content

GetPlayerOutfits

The player’s three outfits - what each one wears and which one they wear now.

The game’s outfits (the inventory’s flags A, B and C) as the player’s game last reported them, or as the mode last set them with SetPlayerOutfits: current is the one they wear (1, 2 or 3) and [1], [2], [3] the item class GUIDs each one wears - clothing, armour and the weapons of its weapon sets - one entry per item (a class twice for two of it). An outfit the player never put together is an empty list. nil before the player’s game reported them, a few seconds after the spawn.

GetPlayerOutfits(pid)
Parameter Type
pid number the player

table or nil - {current = 1..3, [1] = {class, ...}, [2] = {...}, [3] = {...}}

local o = GetPlayerOutfits(pid)
if o then SendClientMessage(pid, -1, string.format("You wear outfit %d of 3 (%d pieces)", o.current, #o[o.current])) end

SetPlayerOutfits · OnPlayerOutfitChange · GetPlayerInventory · the Items and inventory group of the index