GetPlayerArmorUpgrades
getPlayerArmorUpgrades
AVAILABLE FROM UPDATE 0.1.9
Available from 0.1.9.
Reads the canonical selected armor pieces for a player.
Syntax
parts = getPlayerArmorUpgrades(playerId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
number |
yes | Existing connected player ID: finite integer 1..4294967295, not a numeric string. |
Returns
A table with top, mid and bottom strings; empty slots are "". Returns false for an invalid/unavailable ID or invalid argument count/type. A valid character with no selected parts returns three empty strings, not false.
Examples
local parts = getPlayerArmorUpgrades(playerId)
if parts then outputDebugString(parts.top) end
Notes
- Server-side only; available from 0.1.9.
- See Armor upgrades, Armor catalog and Armor upgrade catalog.
- Read-only; this is server equipment state, not an inventory scan.
- Equivalent alias: GetPlayerArmorUpgrades.