GetPlayerTextColor(Entity, Color)

client
Allows overriding the color of the player's name in the scoreboard.

Arguments

  • player Entity
  • color Color the color of the player's name in the scoreboard

Returns

  • color return a replacement color to override the default color

Note: Returning is not required

Returning from hooks is not required. Only do so if you mean to override behaviour. The first hook that returns a value will be the final value, skipping all following hooks.

Examples

hook GetPlayerTextColor – "Allows overriding the color of the player's name in the scoreboard."