[Release] Turn Signals/Indicators & Hazards. [SERVER-SIDE]

So i couldn’t find a ‘Hazard light’ script anywhere.

So i made one!

Installation

  1. Download
  2. Place the Hazards folder in your resources/ directory.
  3. Add - Hazards to your AutoStartResources in citmp-server.yml
  4. Clear your cache
  5. Restart your server
  6. Enjoy.

Script is based on @Apocalyptikz TurnSignals/Indicators.

How To Use:

  1. Left arrow = Left Indicator.
  2. Right arrow = Right Indicator.
  3. Hazards = Y
    All buttons can be edited.

hazards.rar (1.0 KB)

To add:

  1. Keep hazards on when you exit the vehicle.
7 Likes

Couldn’t find a Hazards/indicator script anywhere?.. Must not have looked ehh?

I found turn signals and indicators everywhere, But nothing for hazards.

This script was made for the use of hazards.

they all have hazards you just hit both arrows and they sync together.

Only thing i would like though is for them to stay on when no one is in it.

I agree that you could press both buttons in sync.

But why not just have it keybind to one :smiley:

And yeah i will look into getting that to work!

To keep them on the car engine has to run

1 Like

Is this like the soe turn signals where they go off automatically after making the turn. Or is it like the other turn signal script listed here where you have to manually turn them off after making your turn?
ive been looking for the auto 1s like soe

Have to manually turn them off im afraid will look at getting them automatic thou :slight_smile:

1 Like
  1. Clear your cache? how to clear? which?

D:\cfx-server\cache be delete files here?

Yeah :slight_smile:

https://gyazo.com/af6c254f339f91cd414fbdb50db1047f

Nice script! :slight_smile:
Therefore I have a question.

Is there any benefits to use server events instead of keeping it client side only?
I mean, I guess you could have call the function to toggle turn signal from the client but you use server events, why?

No benifits :slight_smile: Just how i did it, Im new to this thing so just tried my best

All right, I’m kinda new to this too so I like to understand why things are made a certain way ^^

I dont think there is a right or a wrong when developing, If it works it works xD

nice addition to Rp servers im going to try this , is there any update on making these work automatically when your turning ?

Had the same problem. Just remove this: {}{} from the indicators_server.lua file!
I have really no idea what it does, but removing it fixed it for me.

thank you :slight_smile: i’ll check it today

Can you please update the indicators_server.lua to remove the extra ‘{}’, also if you could please remove the print lines because they just clutter up my server logs. One last thing, the left indicator never seems to work for me, whereas the right indicator seems to always work. Great work keep it up!

@Mac_Guru101, The creator of this resource has been inactive for some time now. It might be best to do it yourself.

1 Like