SetVehicleLightState

From Multi Theft Auto: Wiki
Revision as of 07:58, 30 October 2006 by MrJax (talk | contribs)
Jump to navigation Jump to search

Description

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

Syntax

void setVehicleLightState ( vehicle, light, state )

Required Arguments

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

Example

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

See Also