[Release] Turn Signals/Indicators [Server-sided]

HideHudAndRadarThisFrame()

use it in thread

This doesn’t appear to be working. Are there any specific controls for this or have I missed something out? The server loads the script just fine but we don’t see it work in the game.

2 Likes

Left bracket [ and right bracket ]. Do you see it for yourself?

I added this to my server, put the name in the AutoStart list but [ and ] don’t do anything for me.

Resolved: I noticed there were two ‘Indicator’ folders, so I removed the folder inside of the other folder (so when I open up the folder I see the files) and now I see the indicators when using [ and ]

Is it possible to change the keys? Left indicator [ changes weapons when your in a vehicle. I’m not seeing where I can change these values.

Thanks

Look at @MarkViolla’s post

if IsControlJustPressed(1, 190) then – l

if IsControlJustPressed(1, 189) then --r

The numbers represent keys on your keyboard…Change them to whatever you want.

(first resource I was able to find)
https://forum.cfx.re/t/list-of-possible-keys-in-array/1979
and

1 Like

Hmmm, its still not working for me. It indicates only client-side, you cant see the indicators from other players :confused:

1 Like

I dont know why but to me its set to k=left and l=right . How can i change this to Bracelte keys?

Does this include emergency lights? So like when you priss Arrow up both left and right starts to flash?

There are scripts that allow you to do this in the releases section of the forums. This is very early example to demonstrate how to stream vehicle’s flags.

My friends told me they couldn’t see the indicator, how can i fix this?

1 Like

Idk what went wrong in your code, but i fixed it for you. there you go

indicators_client.lua (1.3 KB)
indicators_server.lua (582 Bytes)
__resource.lua (76 Bytes)

10 Likes

How to add that? It doesn’t work for me.

Make a folder and call it whatever you want. Goto “server.cfg” and put it under “AUTOSTART RECOURSES”

Put it as
“Start [name]”

Start the server and done

Forgot to reply, problem solved however thank you for reply.

1 Like

Thanks for the fix! :smile:

2 Likes

Can someone add hazard lights to this?

Just press both keys at the same time, tested, it works…

1 Like

Its not working for me rn?

So, how would I add a hazard function? What are the values I need to replace with what name?

Also, I tried changing the controls. Every resource I find claims that the left and right arrow keys are “37”, and “39”. The problem is, that TAB and SCROLL_DOWN are triggering the indicators with these settings.

Using a code index from another indicator mod (that I don’t think works with FiveM), I was able to bind the left and right arrow keys to the indicators (INPUT_CELLPHONE_LEFT “174”, and INPUT_CELLPHONE_RIGHT “175”). The problem, is that left and right DPad also triggers them on my controller. But, hey… At least it’s working now, and I can always just click the right indicator off when I manually toggle my headlights.