ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getPlayerBlipColor

Function

getPlayerBlipColor

Server and clientBlipsTrilogy Hub only

Returns the colour of a player's map icon.

Syntax

int getPlayerBlipColor(player thePlayer)

Arguments

thePlayerplayer
The player.

Returns

r, g, b, a (255, 0, 0, 255 by default).

Example

local r, g, b = getPlayerBlipColor(player)

See also