GetPlayerArmorNames

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

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.