This is MTA:SA ready to use improved vehicles lights system resource. It implements custom indicators, brakes, reverse, parking lights, including client-server sides synchronization. The resource requires custom_vehicle_lights resource.
Note: required vehicles adaptation, check the "custom_vehicle_lights" resource.
boolean getVehicleHeadLightsState(element vehicle)
boolean setVehicleHeadLightsState(element vehicle, boolean state)
int getVehicleIndicatorLightsState(element vehicle)
(state 0 means that indicators are disabled, 1 - left turn signal is enabled, 2 - right turn signal is enabled, 3 - hazard signal is enabled)boolean setVehicleIndicatorLightsState(element vehicle, int state)
boolean getVehicleParkLightsState(element vehicle)
boolean setVehicleParkLightsState(element vehicle, boolean vehicle)
lights
(L
key) switch head lightsturnl
(<
key) switch turn left signalturnr
(>
key) switch turn right signalhazard
(/
key) switch hazard signalpark
(K
key) switch parking lights