GetPlayerSkin: Difference between revisions
Jump to navigation
Jump to search
Complete Lua function catalog |
Document player skin, body and head appearance API |
||
| Line 1: | Line 1: | ||
<!-- This page is generated automatically from the function definition: getPlayerSkin. --> | <!-- This page is generated automatically from the function definition: getPlayerSkin. --> | ||
= getPlayerSkin = | = getPlayerSkin = | ||
Returns a player's authoritative | Returns a player's authoritative legacy skin-surface preset. | ||
== Syntax == | == Syntax == | ||
Latest revision as of 18:59, 15 August 2026
getPlayerSkin
Returns a player's authoritative legacy skin-surface preset.
Syntax
string|false getPlayerSkin(int playerId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
Returns
Returns the stable skin key, or false when the player is invalid or has no initialized appearance state.
Examples
Read a player's appearance:
local skinKey = getPlayerSkin(playerId)
if skinKey then
outputDebugString("Skin: " .. skinKey)
end
Notes
- Available only in server-side resource scripts.
- The returned value is server-authoritative and never contains a client-supplied Unreal class path.