GraphicsClient

setEntityIconColor

SET_ENTITY_ICON_COLOR0x1D5F595CCAE2E238

The GTA V native SET_ENTITY_ICON_COLOR of the GRAPHICS namespace, as LS:MP client scripts call it: the global function setEntityIconColor, in JavaScript and in Lua.

SignatureJavaScript
setEntityIconColor(
  entity: Entity,
  red: number,
  green: number,
  blue: number,
  alpha: number
): void
SignatureLua
setEntityIconColor(
  entity: Entity,
  red: integer,
  green: integer,
  blue: integer,
  alpha: integer
)

Usage

JavaScript
setEntityIconColor(entity, red, green, blue, alpha);
Lua
setEntityIconColor(entity, red, green, blue, alpha)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
redintnumberinteger
greenintnumberinteger
blueintnumberinteger
alphaintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Graphics GRAPHICS
In the game
void SET_ENTITY_ICON_COLOR(Entity entity, int red, int green, int blue, int alpha)
Hash
0x1D5F595CCAE2E238

Open in the interactive natives reference