Vehicle::getLightsState

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Syntax

vehicle.getLightsState(lightsOn, highbeamsOn);

Required Arguments

  • lightsOn: BOOL
  • highbeamsOn: BOOL

Return value

  • object: lightsOn, highbeamsOn

Example

let lightState = vehicle.getLightsState(1,1);

mp.gui.chat.push(`Low Beam: ${lightState.lightsOn}, High Beam: ${lightState.highbeamsOn}`);

See also