SetTrafficLightState

From Multi Theft Auto: Wiki
Revision as of 14:49, 8 August 2010 by Gamesnert (talk | contribs) (Created page with '__NOTOC__ {{Server client function}} Sets the current traffic light state. This state controls the traffic light colors. For instance, state '''1''' will cause the north and sout…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sets the current traffic light state. This state controls the traffic light colors. For instance, state 1 will cause the north and south traffic lights to be amber, and the ones left and east will turn red.

Syntax

bool setTrafficLightState ( int state )

Required Arguments

  • state: The state you wish to use

Returns

Returns true if the state was successfully set, false otherwise.

Example

This example doesn't exist

See Also