GetPlayerSkin

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

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.