SetVehicleLightState

From Multi Theft Auto: Wiki
Revision as of 21:10, 11 June 2006 by MrJax (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This function sets the state of the light on the vehicle.

Syntax

setVehicleLightState ( vehicle, state )

Required Arguments

  • Vehicle: A handle to the vehicle that you wish to change the light state of.
  • State: A whole number determining the new state of the light. (0: fine, 1: broken)

Example

newcar = createVehicle ( 520, 1024, 1024, 1024 )
state = setVehicleLightState ( newcar, 1 ) -- Breaks the light on a vehicle.

See Also