Skip to content

function getPlayerColor (client-side)

Available since version: 0.3.0

Get a player's name color as a table { r, g, b } or nil if unavailable.

Declaration

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

Parameters

  • int player_id: Target player id.

Returns {r, g, b}|nil

RGB color (0-255) or nil.