SetWeaponProperty: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "{{Server function}} __NOTOC__ Page in the making. ==Syntax== <syntaxhighlight lang="lua">int getVehicleLightState ( vehicle theVehicle, int light )</syntaxhighlight> ==Required Arguments== *'''theVehicl...")
 
No edit summary
Line 1: Line 1:
{{Server function}}
{{Server function}}
__NOTOC__
__NOTOC__
{{New feature|3.0120|1.2|
Only available in MTA:SA v1.2 and onwards.
}}
Page in the making.
Page in the making.



Revision as of 23:19, 16 November 2011

Only available in MTA:SA v1.2 and onwards. Page in the making.

Syntax

int getVehicleLightState ( vehicle theVehicle, int light )

Required Arguments

  • theVehicle: A handle to the vehicle that you wish to know the light state of.
  • light: A whole number between 0 and 3

Returns

Returns 0 (working) or 1 (broken)

Example

newcar = createVehicle ( 520, 1024, 1024, 1024 )
state = getVehicleLightState ( newcar, 0 )
outputChatBox ( "The front-left light state on this car: " .. state )

See Also