GetPlayerSkinNames

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 18:59, 15 August 2026 by QCherry (talk | contribs) (Document player skin, body and head appearance API)
Jump to navigation Jump to search

getPlayerSkinNames

Returns every validated legacy skin-surface preset exposed by the server.

Syntax

table getPlayerSkinNames()

Parameters

This function does not accept parameters.

Returns

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

Examples

List the available appearance presets:

for _, skinKey in ipairs(getPlayerSkinNames()) do
    outputDebugString(skinKey)
end

Notes

  • Available only in server-side resource scripts.
  • For players this compatibility channel supplies Mutable visual features such as skin, tattoos and scars; it does not select the authoritative full-body identity mesh.
  • Use setPlayerBody and setPlayerHead for player anatomy and identity.
  • Armor is an independent equipment layer and is controlled with setPlayerArmor.
  • See Player skin catalog for every currently supported key.