Jump to content

[REL] Emerlights 1.0 - Emergency Lights


vovo4ka

Recommended Posts

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 :roll:

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
  • 6 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...