World::trafficLights.locked: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
'''Property''': Locks the traffic lights in their current position. | '''Property''': Locks the traffic lights in their current position. | ||
==Example== | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.world.trafficLights.locked = true // Lock the position | mp.world.trafficLights.locked = true // Lock the position | ||
mp.world.trafficLights.locked = false // Unlock the position | mp.world.trafficLights.locked = false // Unlock the position | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 21:47, 19 January 2018
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