GetPlayerSkinNames: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Update Lua API reference
 
Complete Lua function catalog
Line 28: Line 28:
* See [[Player skin catalog]] for every currently supported key.
* See [[Player skin catalog]] for every currently supported key.


[[Category:Lua Functions]]
[[Category:Server Functions]]
[[Category:Server Functions]]
[[Category:Player Functions]]
[[Category:Player Functions]]
[[Category:Appearance Functions]]
[[Category:Appearance Functions]]

Revision as of 09:53, 15 August 2026

getPlayerSkinNames

Returns every validated player appearance 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.
  • A skin is an atomic, catalog-backed CharacterDefinition preset containing the compatible body and face setup.
  • Armor is an independent equipment layer and is controlled with setPlayerArmor.
  • See Player skin catalog for every currently supported key.