ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setTrafficLightsLocked

Function

setTrafficLightsLocked

ServerWorldIdentical to MTA:SA

Stores whether the traffic lights should be locked in their current state (no automatic changes).

Syntax

bool setTrafficLightsLocked(bool value)

Arguments

valuebool
true = locked.

Returns

true on success.

Example

setTrafficLightsLocked(true)

Notes

State for scripts. See setTrafficLightState.

See also