GetPlayerArmorNames: Difference between revisions
Jump to navigation
Jump to search
Document armor catalogs and eight armor-upgrade Lua APIs from upcoming 0.1.9; public release unchanged |
Release 0.1.9 / BUILD264 / Protocol42: availability and download setup; preserve experimental limits |
||
| Line 33: | Line 33: | ||
<!-- armor019:start --> | <!-- armor019:start --> | ||
== Armor parts (from 0.1.9) == | == Armor parts (from 0.1.9) == | ||
Available from 0.1.9. [[Armor catalog]] lists the 26 bases; [[Armor upgrade catalog]] lists all 84 pieces. This existing function/guide is not newly introduced in 0.1.9. The new [[Armor upgrades|upgrade system]] adds per-character top/mid/bottom selections, full presets and separate player/NPC setters. A different base clears the old parts; choosing the same base keeps compatible selections. Identity, skin tint and tattoos remain separate. See the guide for requirements, safe replacement and synchronization validation. | |||
<!-- armor019:end --> | <!-- armor019:end --> | ||
Latest revision as of 13:27, 20 October 2026
getPlayerArmorNames
Returns the stable keys of every armor currently exposed by the server catalog.
Syntax
table getPlayerArmorNames()
Parameters
This function does not accept parameters.
Returns
Returns an array of armor key strings.
Examples
List all available armor keys:
for _, armorKey in ipairs(getPlayerArmorNames()) do
outputDebugString(armorKey)
end
Notes
- Available only in server-side resource scripts.
- Use these keys with
givePlayerItemandsetPlayerArmor.
Armor parts (from 0.1.9)
Available from 0.1.9. Armor catalog lists the 26 bases; Armor upgrade catalog lists all 84 pieces. This existing function/guide is not newly introduced in 0.1.9. The new upgrade system adds per-character top/mid/bottom selections, full presets and separate player/NPC setters. A different base clears the old parts; choosing the same base keeps compatible selections. Identity, skin tint and tattoos remain separate. See the guide for requirements, safe replacement and synchronization validation.