EntityClient

setEntityLights

SET_ENTITY_LIGHTS0x7CFBA6A80BDF3874

The GTA V native SET_ENTITY_LIGHTS of the ENTITY namespace, as LS:MP client scripts call it: the global function setEntityLights, in JavaScript and in Lua.

SignatureJavaScript
setEntityLights(entity: Entity, toggle: boolean): void
SignatureLua
setEntityLights(entity: Entity, toggle: boolean)

Usage

JavaScript
setEntityLights(entity, toggle);
Lua
setEntityLights(entity, toggle)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Entity ENTITY
In the game
void SET_ENTITY_LIGHTS(Entity entity, BOOL toggle)
Hash
0x7CFBA6A80BDF3874

Open in the interactive natives reference