SetVehicleLightsMode

From GT-MP
Jump to: navigation, search
SetVehicleLightsMode
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript


Sets the Lights Mode of the specified Vehicle with the specified mode.


Mode determines how vehicle lights behave when toggled.

       0 = Default (Lights can be toggled between off, normal and high beams)
       1 = Lights Disabled (Lights are fully disabled, cannot be toggled)
       2 = Always On (Lights can be toggled between normal and high beams)


Syntax

API.setVehicleLightsMode(LocalHandle vehicle, int mode);

Required Arguments

  • vehicle: parameter input should be in LocalHandle type.
  • mode: parameter input should be in int type.

Usage example(s)

API.setVehicleLightsMode(LocalHandle vehicle, int mode);


References