ControlsClient

setControlLightEffectColor

SET_CONTROL_LIGHT_EFFECT_COLOR0x8290252FFF36ACB5

The GTA V native SET_CONTROL_LIGHT_EFFECT_COLOR of the PAD namespace, as LS:MP client scripts call it: the global function setControlLightEffectColor, in JavaScript and in Lua.

SignatureJavaScript
setControlLightEffectColor(
  control: number,
  red: number,
  green: number,
  blue: number
): void
SignatureLua
setControlLightEffectColor(
  control: integer,
  red: integer,
  green: integer,
  blue: integer
)

Usage

JavaScript
setControlLightEffectColor(control, red, green, blue);
Lua
setControlLightEffectColor(control, red, green, blue)

Parameters

ParameterTypeJavaScriptLuaDescription
controlintnumberintegersee isControlEnabled
redintnumberinteger
greenintnumberinteger
blueintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Controls PAD
In the game
void SET_CONTROL_LIGHT_EFFECT_COLOR(int control, int red, int green, int blue)
Hash
0x8290252FFF36ACB5
Formerly
_SET_CONTROL_GROUP_COLOR

Open in the interactive natives reference