GetPlayerArmorNames: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Complete Lua function catalog
Release 0.1.9 / BUILD264 / Protocol42: availability and download setup; preserve experimental limits
 
(One intermediate revision by the same user not shown)
Line 30: Line 30:
[[Category:Inventory Functions]]
[[Category:Inventory Functions]]
[[Category:Equipment Functions]]
[[Category:Equipment Functions]]
<!-- armor019:start -->
== 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 -->

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 givePlayerItem and setPlayerArmor.

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.