Перейти к содержанию

Vehicle::getLightsState

Материал из RAGE MP Wiki Archive
Версия от 07:45, 22 мая 2021; imported>YnnhoJ (Change types of required arguments)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Syntax

vehicle.getLightsState(lightsOn, highbeamsOn);

Required Arguments

  • lightsOn: int
  • highbeamsOn: int

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