GetPlayerSkin: 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 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]]

Revision as of 09:53, 15 August 2026

getPlayerSkin

Returns a player's authoritative appearance 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.