ObjectClient

setPropLightColor

SET_PROP_LIGHT_COLOR0x5F048334B4A4E774

The GTA V native SET_PROP_LIGHT_COLOR of the OBJECT namespace, as LS:MP client scripts call it: the global function setPropLightColor, in JavaScript and in Lua.

SignatureJavaScript
setPropLightColor(
  object: Object,
  p1: boolean,
  r: number,
  g: number,
  b: number
): boolean
SignatureLua
setPropLightColor(
  object: Object,
  p1: boolean,
  r: integer,
  g: integer,
  b: integer
): boolean

Usage

JavaScript
const result = setPropLightColor(object, p1, r, g, b);
Lua
local result = setPropLightColor(object, p1, r, g, b)

Parameters

ParameterTypeJavaScriptLua
objectObjectnumberinteger
p1BOOLbooleanboolean
rintnumberinteger
gintnumberinteger
bintnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Object OBJECT
In the game
BOOL SET_PROP_LIGHT_COLOR(Object object, BOOL p1, int r, int g, int b)
Hash
0x5F048334B4A4E774
Introduced
Game build 1493 legacy numbering
Formerly
_SET_OBJECT_LIGHT_COLOR

Open in the interactive natives reference