GetPlayerArmorNames

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 09:52, 15 August 2026 by QCherry (talk | contribs) (Complete Lua function catalog)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.