Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rsscustom_vehicle_lights (custom_vehicle_lights)

Category:script
Author(s):matran
Downloads:66
Rate:You need to be logged in to vote
Rating:5 (1 Vote)
Description:
This is MTA:SA custom vehicles lights system resource. It allows you to create any lights you want (break, reverse, indicators, sirens, etc, concrete name doesnt matter) and manage they. It is based on simple shader (for brighting light textures) and custom coronas (for emulating light effect).

The resource provides only client-side lights API. For ready to use lights system see "improved_vehicle_lights" resource.

The resource requires vehicle adaptation! For guide see README file.

Demo video: https://imgur.com/0DygyZf

features:
- one shader per vehicle
- single light texture (or you can use more if you need)
- up to 48 lights per vehicle (technically it can be extended in future)
- flexible configuration
- non-discrete light power (from 0 to 1)

exported client-side functions:
- float getVehicleCustomLightPower(element vehicle, string lightName)
- boolean setVehicleCustomLightPower(element vehicle, string lightName, float power) (power is from 0.0 to 1.0)
- float getVehicleCustomLightSize(element vehicle, string lightName)
- boolean setVehicleCustomLightSize(element vehicle, string lightName, float size)
- int, int, int, int getVehicleCustomLightColor(element vehicle, string lightName)
- boolean setVehicleCustomLightColor(element vehicle, string lightName, int r, int g, int b, int a)

github: https://github.com/rifleh700/custom_vehicle_lights
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
2.0.0 2024-04-21 09:18:44 First public release Download