GetTrafficLightState: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with '__NOTOC__ {{Server client function}} Gets the current traffic light state. This state controls the traffic light colors. For instance, state '''1''' will cause the north and sout…')
 
Line 5: Line 5:
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
int setTrafficLightState ( )
int getTrafficLightState ( )
</syntaxhighlight>
</syntaxhighlight>



Revision as of 20:16, 8 August 2010

Gets 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

int getTrafficLightState ( )

Returns

Returns the current state of the traffic lights.

Example

This example doesn't exist

See Also

Shared