World::trafficLights.locked: Difference between revisions
mNo edit summary |
No edit summary |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
This property locks the traffic lights in their current position. | |||
==Example== | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.world.trafficLights.locked = true // | mp.world.trafficLights.locked = true // LOCK THE POSITION | ||
mp.world.trafficLights.locked = false // | mp.world.trafficLights.locked = false // UNLOCK THE POSITION | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | |||
{{World_definition}} | |||
Latest revision as of 16:06, 29 January 2018
This property locks the traffic lights in their current position.
Example
mp.world.trafficLights.locked = true // LOCK THE POSITION
mp.world.trafficLights.locked = false // UNLOCK THE POSITION