setEntityLights
SET_ENTITY_LIGHTS0x7CFBA6A80BDF3874The 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.
setEntityLights(entity: Entity, toggle: boolean): voidsetEntityLights(entity: Entity, toggle: boolean)Usage
JavaScript
setEntityLights(entity, toggle);Lua
setEntityLights(entity, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
toggle | BOOL | boolean | boolean |
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