Skip to main content

GetPlayerColor

Get the color of a player by player's id.

Parameters:

  • playerId: Player id

Returns: Player color as hexadecimal string (e.g., "FF0000" for red), or "FFFFFF" on failure

Signature:

GetPlayerColor(playerId)