GetPlayerSkin: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Update Lua API reference
 
Document player skin, body and head appearance API
 
(One intermediate revision by the same user not shown)
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 appearance preset.
Returns a player's authoritative legacy skin-surface preset.


== Syntax ==
== Syntax ==
Line 31: Line 31:
* The returned value is server-authoritative and never contains a client-supplied Unreal class path.
* The returned value is server-authoritative and never contains a client-supplied Unreal class path.


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

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.