SixL server API / world / WorldTrafficLightsMp
Interface: WorldTrafficLightsMp
The traffic lights of mp.world.trafficLights.
Properties
locked
locked: boolean
Whether the lights are locked on their state.
Remarks
Partial: reaches the clients and the scripts; the game's lights do not change (the game has no way to change them yet).
Example
mp.world.trafficLights.locked = true;
state
state: number
The state the lights show when locked.
Remarks
Partial: as locked.
Example
mp.world.trafficLights.state = 1;