GetPlayerArmorNames: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Complete Lua function catalog
Document armor catalogs and eight armor-upgrade Lua APIs from upcoming 0.1.9; public release unchanged
Line 30: Line 30:
[[Category:Inventory Functions]]
[[Category:Inventory Functions]]
[[Category:Equipment Functions]]
[[Category:Equipment Functions]]
<!-- armor019:start -->
== Armor parts (from 0.1.9) ==
Upcoming; not included in public 0.1.8. [[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 -->

Revision as of 21:46, 18 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 givePlayerItem and setPlayerArmor.

Armor parts (from 0.1.9)

Upcoming; not included in public 0.1.8. 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.