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 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
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!