Tommy's Scripts
  • Information
    • FiveM Escrow System
  • Paid Scripts
    • Tommy's ELS
    • Tommy's Radar Detector
    • Tommy's POV
    • Tommy's Radio
    • Tommy's HUD (Legacy V1)
    • Custom Unit Number
    • GTA:O Loading Screen
  • Free Scripts
    • Tommy's Lights Sync
    • Tommy's Discord API
    • Priority Status
Powered by GitBook
On this page
  1. Free Scripts

Tommy's Lights Sync

Configuration guide, common issues & solutions, code snippets, and more.

Last updated 9 months ago

|

Escrow Encrypted: Yes

Requirements: None

Tommy's Light Sync is a FiveM script that synchronizes the lights of emergency vehicles, providing a realistic lighting sequence similar to the real-life bluePRINT Sync system. Please note that this script only syncs the start time of the lighting sequence for each vehicle, so it works best with a vehicle pack where all the vehicles were created by the same developer. This script does not work with ELS (Emergency Lighting System).

Configuration

In the config.lua file, you can customize the settings for Tommy's Light Sync:

--[[
Tommy's Lights v1.0

  _______                              _       _      _       _     _
 |__   __|                            ( )     | |    (_)     | |   | |
    | | ___  _ __ ___  _ __ ___  _   _|/ ___  | |     _  __ _| |__ | |_ ___
    | |/ _ \| '_ ` _ \| '_ ` _ \| | | | / __| | |    | |/ _` | '_ \| __/ __|
    | | (_) | | | | | | | | | | | |_| | \__ \ | |____| | (_| | | | | |_\__ \
    |_|\___/|_| |_| |_|_| |_| |_|\__, | |___/ |______|_|\__, |_| |_|\__|___/
                                  __/ |                  __/ |
                                 |___/                  |___/
--]]
-- Developed by https://github.com/tommy141x

refreshRate = 5000 -- How often to sync lights (in ms)
  • refreshRate: Specifies how often the lights should be synchronized, in milliseconds. Adjust this value based on your preference and server performance. The default value is 5000ms (5 seconds).

Please note that the script requires the presence of a person in an emergency vehicle at least once during the refresh interval. If you quickly spawn a vehicle and exit it, the lights may not sync until you sit in each vehicle for a few seconds.

If you have any questions or need further assistance, please feel free to ask.

FiveM Post
Store Page
Page cover image