GetPlayerFace

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

getPlayerFace

Returns a player's authoritative GTO face profile.

Syntax

string|false getPlayerFace(int playerId)

Parameters

Name Type Required Description
playerId int yes The connected player identifier.

Returns

Returns the stable face key, or false when the player is invalid or appearance state is unavailable.

Examples

Read a player's face profile:

local faceKey = getPlayerFace(playerId)
if faceKey then
    outputDebugString("Face: " .. faceKey)
end

Notes

  • Available only in server-side resource scripts.
  • The returned state is server-authoritative and late-join safe.