GetPlayerSkinNames: Difference between revisions
Jump to navigation
Jump to search
Document player skin, body and head appearance API |
Clarify player appearance API behavior |
||
| Line 26: | Line 26: | ||
* 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. | * 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 <code>setPlayerBody</code> and <code>setPlayerHead</code> for player anatomy and identity. | * Use <code>setPlayerBody</code> and <code>setPlayerHead</code> for player anatomy and identity. | ||
* Armor is | * Armor is authoritative equipment state controlled with <code>setPlayerArmor</code>. A named body preset may visually replace it with that character's original outfit until the body returns to <code>default</code>. | ||
* See [[Player skin catalog]] for every currently supported key. | * See [[Player skin catalog]] for every currently supported key. | ||
Revision as of 21:43, 15 August 2026
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
setPlayerBodyandsetPlayerHeadfor player anatomy and identity. - Armor is authoritative equipment state controlled with
setPlayerArmor. A named body preset may visually replace it with that character's original outfit until the body returns todefault. - See Player skin catalog for every currently supported key.