setPropLightColor
SET_PROP_LIGHT_COLOR0x5F048334B4A4E774The 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.
setPropLightColor(
object: Object,
p1: boolean,
r: number,
g: number,
b: number
): booleansetPropLightColor(
object: Object,
p1: boolean,
r: integer,
g: integer,
b: integer
): booleanUsage
JavaScript
const result = setPropLightColor(object, p1, r, g, b);Lua
local result = setPropLightColor(object, p1, r, g, b)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
object | Object | number | integer |
p1 | BOOL | boolean | boolean |
r | int | number | integer |
g | int | number | integer |
b | int | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanReference
- 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