Перейти к содержанию

World::trafficLights.state

Материал из RAGE MP Wiki Archive
Версия от 16:44, 6 мая 2018; imported>Mcfloy (Init the state page)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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)

Values North - South West - Est
0 Red Green
39 Red Orange
48 Green Red
87 Orange Red

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

Example

<syntaxhighlight lang="javascript"> mp.world.trafficLights.state = 0; // Will put one way on Red light and the other on Green light. </syntaxhighlight>

See Also