HUDClient

setPlayerIconColour

SET_PLAYER_ICON_COLOUR0x7B21E0BB01E8224A

The GTA V native SET_PLAYER_ICON_COLOUR of the HUD namespace, as LS:MP client scripts call it: the global function setPlayerIconColour, in JavaScript and in Lua.

SignatureJavaScript
setPlayerIconColour(color: number): void
SignatureLua
setPlayerIconColour(color: integer)

Usage

JavaScript
setPlayerIconColour(color);
Lua
setPlayerIconColour(color)

Parameters

ParameterTypeJavaScriptLua
colorintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void SET_PLAYER_ICON_COLOUR(int color)
Hash
0x7B21E0BB01E8224A
Formerly
_SET_MAIN_PLAYER_BLIP_COLOUR

Open in the interactive natives reference