vovo4ka Posted June 23, 2012 Share Posted June 23, 2012 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 Link to comment
qaisjp Posted June 25, 2012 Share Posted June 25, 2012 Is this using the vehicle light natives? Link to comment
vovo4ka Posted June 27, 2012 Author Share Posted June 27, 2012 What did you mean by 'vehicle light natives'? Link to comment
qaisjp Posted June 27, 2012 Share Posted June 27, 2012 https://wiki.multitheftauto.com/wiki/AddVehicleSirens https://wiki.multitheftauto.com/wiki/SetVehicleSirens Link to comment
qaisjp Posted June 28, 2012 Share Posted June 28, 2012 Your method is lame, sorry to say. Link to comment
vovo4ka Posted June 28, 2012 Author Share Posted June 28, 2012 Np. So, could you please, show me the right way to implement such lights: with 'native lights' etc. Thx. Link to comment
iMr.WiFi..! Posted October 6, 2018 Share Posted October 6, 2018 4 hours ago, DannyDanny said: How rude... What an old topic! Quote Posted June 28, 2012 Link to comment
JudgeJayo Posted October 6, 2018 Share Posted October 6, 2018 13 hours ago, iMr.WiFi..! said: What an old topic! Six years ago, yeap.. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now