GetPlayerBodyNames

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 21:43, 15 August 2026 by QCherry (talk | contribs) (Clarify player appearance API behavior)
Jump to navigation Jump to search

getPlayerBodyNames

Returns every validated full-body identity preset exposed by the server.

Syntax

table getPlayerBodyNames()

Parameters

This function does not accept parameters.

Returns

Returns a one-based array of stable body keys. The first entry is default.

Examples

List every available full-body preset:

for _, bodyKey in ipairs(getPlayerBodyNames()) do
    outputDebugString(bodyKey)
end

Notes

  • Available only in server-side resource scripts.
  • Named G1R characters are complete visual presets containing their original body, head and outfit or armor appearance.
  • Independent head and armor visuals are shown with the default body.
  • Use default to restore the editable Nameless Hero body.
  • See Player body catalog for the complete list.