Introduction

Hey Boards,

My title is Serena and I’m right here to assist with fixing YOUR Emergency Lights this will both be as a result of they’re actually DIM or they’re everywhere and damaged.

Image

That is an actually badly damaged gentle system so how one can repair this? I personally have had little damaged lights in my server how-ever generally a car will break while you add TO MUCH gentle to the server this may be by including new automobiles or changing automobiles.

Fixing Course of

The fixing course of doesn’t take to lengthy however you simply must know what you might be doing. Which for some that do NOT code could be arduous to do. So let’s get within the 2 Sections that we are going to be protecting. Dim lights (Barely to no glow) & Damaged Lights (They don’t seem to be on locations presupposed to be).

Dim Lights

Dim lights are a simple challenge to repair you possibly can set up any visible pack or perhaps a server sided visible pack. I personally all the time had ran a consumer facet visible pack as a result of if the way in which I play GTA however you possibly can put it in your server to! Right here is the code to make YOUR lights brighter in your server.

visualsettings.dat

automobile.headlight.day.emissive.on 180.00
automobile.headlight.night time.emissive.on 105.00
automobile.headlight.day.emissive.off 0.000
automobile.headlight.night time.emissive.off 0.000
automobile.taillight.day.emissive.on 200.0
automobile.taillight.night time.emissive.on 150.0
automobile.taillight.day.emissive.off 0.00
automobile.taillight.night time.emissive.off 0.000
automobile.indicator.day.emissive.on 250.00
automobile.indicator.night time.emissive.on 220.00
automobile.indicator.day.emissive.off 0.00
automobile.indicator.night time.emissive.off 0.000
automobile.reversinglight.day.emissive.on 35.00
automobile.reversinglight.night time.emissive.on 15.00
automobile.reversinglight.day.emissive.off 0.000
automobile.reversinglight.night time.emissive.off 0.000
automobile.defaultlight.day.emissive.on 2300.00
automobile.defaultlight.night time.emissive.on 1500.00
automobile.defaultlight.day.emissive.off 0.00
automobile.defaultlight.night time.emissive.off 0.000
automobile.brakelight.day.emissive.on 240.00
automobile.brakelight.night time.emissive.on 180.00
automobile.brakelight.day.emissive.off 0.00
automobile.brakelight.night time.emissive.off 0.000
automobile.middlebrakelight.day.emissive.on 210.00
automobile.middlebrakelight.night time.emissive.on 160.00
automobile.middlebrakelight.day.emissive.off 0.00
automobile.middlebrakelight.night time.emissive.off 0.000
automobile.extralight.day.emissive.on 350.00
automobile.extralight.night time.emissive.on 160.00
automobile.extralight.day.emissive.off 0.000
automobile.extralight.night time.emissive.off 0.00
automobile.emissiveMultiplier 2.00

consumer.lua

operate stringsplit(inputstr, sep)

if sep == nil then

    sep = "%s"

finish

native t={} ; i=1

for str in string.gmatch(inputstr, "([^"..sep.."]+)") do

    t[i] = str

    i = i + 1

finish

return t

finish

native operate starts_with(str, begin)

return str:sub(1, #begin) == begin

finish

Citizen.CreateThread(operate()

native settingsFile = LoadResourceFile(GetCurrentResourceName(), "visualsettings.dat")

native strains = stringsplit(settingsFile, "n")

for ok,v in ipairs(strains) do

    if not starts_with(v, '#') and never starts_with(v, '//') and (v ~= "" or v ~= " ") and #v > 1 then

        v = v:gsub("%s+", " ")

        native setting = stringsplit(v, " ")

        if setting[1] ~= nil and setting[2] ~= nil and tonumber(setting[2]) ~= nil then

            if setting[1] ~= 'climate.CycleDuration' then   

                Citizen.InvokeNative(GetHashKey('SET_VISUAL_SETTING_FLOAT') & 0xFFFFFFFF, setting[1], tonumber(setting[2])+.0)

            finish

        finish

    finish

finish

finish)

useful resource.lua

recordsdata {

'visualsettings.dat'

}

client_script ‘consumer.lua’

So in case you make a folder known as visuals in your assets folder then add it to the server.cfg it can load and your lights can be brighter!

Autos Damaged

Damaged Lights are a typical challenge when putting in LEO packs or EMS or any gentle pack you can suppose off. Generally the codes of those ligths might intrude with othes and they also will break as a result of 1 gentle takes precedence over the opposite. How this works in a complete I’m not sure about… However here’s a fast information.

  1. You open the folder of the car that has damaged lights.
  2. You open each the carcols.meta & carvariations.meta Information.
  • We’ll clarify each recordsdata in it’s personal part.
carcols
  1. You search for the car that has the damaged lights.
  2. You find this line <id worth="2101"/> it all the time consists of a quantity.
  3. You alter this quantity to a random 6 string line. It might appear to be <id worth="923478"/> for instance. DO NOT Repeat already used numbers <id worth="425133"/> Is invalid.
  4. Save he file and go to carvariations
carvariations
  1. You search for the car like earlier than.
  2. You find this hyperlink <sirenSettings worth="2101"/> of the car that has the damaged lights.
  3. You alter the quantity within the sirenSettings worth to be the identical as within the carcols.meta
  4. Save the file and restart the useful resource.

In case you did all steps accurately and restart the useful resource it might be fastened if it didn’t chances are you’ll attempt once more. For more information consult with under.

Different Particulars

It could take a couple of tries for the ligths to accurately fall in place once more. I do NOT know why that is. All I do know is that it generally might occur. Simply restarting the useful resource is sufficient there isn’t a want for a full server restart. There have solely been 2 automobiles I needed to take away attributable to it not wanting to repair.

Personally to view all these recordsdata I take advantage of Visual Studio Code. A very good different is Notepad++

Video!

Here is the video guide!
As of 10:07 +2 4th of march.

(This video should be procesing.)

I can’t bear in mind who made this pack please contact me if you’re the creator and I’ll credit score you!



Looking for a FiveM Server host? Click here