Skip to main content

World::trafficLights.state

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Server-side JavaScript). Calling it does nothing or throws.

This property set the traffic lights state. (If you want to make your own traffic lights system, make sure of locking the traffic lights to avoid the game to change them by itself)

ValuesNorth - SouthWest - Est
0RedGreen
39RedOrange
48GreenRed
87OrangeRed

Sequence of traffic lights in GTA V : [0, 39, 87, 48, 87, 39]

Example​

mp.world.trafficLights.state = 0; // Will put one way on Red light and the other on Green light.