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