I made resource for adding an emergency lighting to custom vehicles, because some times it needs for movie making.
Also I found that built-in lights are not visible in the daytime. So my implementation is brighter, and maybe more cinematic
You can customize lights for every vehicle model. There are 2 lamp style: 'rotating' light and flashing 'led' mode.
Demo video:
This resource is compitable with Stage 1.5, and so on.
Also it can be used without Stage.
Usage:
Default key for lights enable - B key. (re-bindable in MTA settings)
You can enable/disable emerlights for custom vehicle in your resource:
setElementData( theVehicle, "emerlights_enabled", "true" ) or "false"
(if element data is not set - emerlights is enabled by default)
How to add custom vehicles/lights:
1. open client.lua
2. find car_lights_table table and add or replace row (example inside)
[vehicle_model_ID] = { ["mode"]="led" or "lamp" , = { light offset, light color, light size, phase offset (belong to [0;10]) } }
Known issues:
some times lights may not appear due known MTA bug with corona: http://bugs.mtasa.com/view.php?id=5147
there are only 32 lights are visible at same time (due MTA limits)
Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=5030