Skip to content

Commit

Permalink
Update VEHICLE/SetVehicleLights.md
Browse files Browse the repository at this point in the history
Co-authored-by: Dillon Skaggs <[email protected]>
  • Loading branch information
ahcenezdh and AvarianKnight authored Sep 13, 2024
1 parent b3f75e1 commit 79b3001
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions VEHICLE/SetVehicleLights.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,24 @@ NativeDB Introduced: v323
```
```c
enum vehicleLightSetting {
NO_VEHICLE_LIGHT_OVERRIDE = 0, // Normal light behavior. Lights cycle through off, then low beams, then high beams. Note: It's affected by day or night; high beams don't exist in daytime.
FORCE_VEHICLE_LIGHTS_OFF = 1, // Vehicle doesn't have lights, always off.
FORCE_VEHICLE_LIGHTS_ON = 2, // Vehicle has always-on lights. During day: Cycles between low beams and high beams. At night: Cycles between low beams, low beams, and high beams.
SET_VEHICLE_LIGHTS_ON = 3, // Sets vehicle lights on. Behaves like normal lights (same as 0).
SET_VEHICLE_LIGHTS_OFF = 4 // Sets vehicle lights off. Behaves like normal lights (same as 0).
enum eVehicleLightSetting {
// Normal light behavior. Lights cycle through off, then low beams, then high beams.
// Note: It's affected by day or night; high beams don't exist in daytime.
NO_VEHICLE_LIGHT_OVERRIDE = 0,
// Vehicle doesn't have lights, always off.
FORCE_VEHICLE_LIGHTS_OFF = 1,
// Vehicle has always-on lights.
// During day: Cycles between low beams and high beams.
// At night: Cycles between low beams, low beams, and high beams.
FORCE_VEHICLE_LIGHTS_ON = 2,
// Sets vehicle lights on. Behaves like normal lights (same as 0).
SET_VEHICLE_LIGHTS_ON = 3,
// Sets vehicle lights off. Behaves like normal lights (same as 0).
SET_VEHICLE_LIGHTS_OFF = 4
};
```


## Parameters
* **vehicle**: The target vehicle.
* **state**: A value from `vehicleLightSetting` representing the desired light setting.
Expand Down

0 comments on commit 79b3001

Please sign in to comment.