Skip to content

function getPlayerColor (server-side)

Available since version: 0.3.0

This function will return the player's name color, or nil if unavailable.

Declaration

{r, g, b}|nil getPlayerColor(number player_id)

Parameters

  • number player_id: Target player id.

Returns {r, g, b}|nil

RGB color table or nil.