[Release] Vehicle Brake Lights [1.0.2] [Client Sync] (Updated 2019)

With this script added to your server, whenever a player’s vehicle is stationary, the brake lights will be activated, unless the handbrake button is pressed. As of version 1.0.2, the brake lights are now synced across all clients.

Download

wk_brakelights-102.zip (2.0 KB)
wk_brakelights-101.zip (1.7 KB)
brakelights-100.rar (727 Bytes)

Installation

Download the .zip file above and place the included folder into your server’s resource folder, once you’ve done that, open your server config file (typically server.cfg) and add the line:

ensure wk_brakelights

Changelog

Version 1.0.2

  • Completely rewrote the way the script works again. decorators are used now to sync brake lights across clients
  • Oh yeah, brake lights sync across clients!
  • Holding the handbrake will stop the brake lights from showing - this is synced also
  • The code has been commented a lot to make it easy for anyone to read

Version 1.0.1

  • Rewrote the way the script works, there are now far fewer native calls per frame to determine if a player’s vehicle is sitting still.
  • Updated the resource manifest version
  • Slightly increased the speed check
  • You can now hold down the handbrake button and the brake lights will go off

Version 1.0.0

  • Initial release
21 Likes

Very nice thanks!
I really like the work you have been doing recently

1 Like

Thank you @Dante.K :slight_smile:

1 Like

From IGN RP Community a big Thank you for releasing this script, very much appreciated

1 Like

This Kind of Idea make FiveM and the game greater. Love It ! Thanks :slight_smile:

1 Like

Hello, I recently put this into my server and am experiencing a constant flickering with the lights how can I fix that

Whilst driving or just when stationary?

I too am experiencing a flicker. Its when stationary.

mmm how it works i put it but…

Yeah i have the flickering happening when standing still whilst in a car.

Can you add an option to disable brake lights when the e-brake is pulled. So if you are being chased by cops you can hide with no brake lights on?
Thanks!

The script is not working for me for some reason

This script does not show your lights on to other players. Its client side only.

Is this going to be updated?

@dav37 What would you like to see added?

Version 1.0.1

  • Rewrote the way the script works, there are now far fewer native calls per frame to determine if a player’s vehicle is sitting still.
  • Updated the resource manifest version
  • Slightly increased the speed check
  • You can now hold down the handbrake button and the brake lights will go off

Can you make this synced for everyone on server

It should already sync? Are you using OneSync?

No sir we are not one sync

Strange, I’ll test the script later with a friend to see for myself. Hopefully it works.