Usage
What tSync touches and what it refuses, the tsync_diag readout, and why there is no server component or network traffic.
There is nothing to operate. tSync has no UI, no keybinds and no commands other than a diagnostic.
What gets re-phased
A vehicle is re-phased when all four are true:
- Its lights are already on
- Its spawn code is not blacklisted, and either the whitelist names it or —
with no whitelist — its class is in
Config.vehicleClasses - It is within
Config.radiusof you - No other lighting script claims it — always, and not configurable
Fail any one and it is left completely alone.
tsync_diag
Run it in the client console (F8). It reports what this client resolved, which is where the work happens.
tSync 1.0.0 — tLib 1.0.0
every 5000 ms, within 150 m, classes 18
deferring to: tLS
last pass re-phased 2 vehicle(s), 1.4 s ago
deferring to: is the resolved answer — the resource it found, or nothing running. There is no flag to read back; deference is unconditional. The spawn codes: line counts your two lists, and says so when a non-empty whitelist is
standing in for the class check.
The command also re-runs the configuration checks, so a problem introduced by an edit shows up without restarting and watching the boot lines scroll past.
How it works
The reset is per-observer
Toggling a vehicle's siren flag restarts GTA's light timer for that vehicle on the client that does it — including vehicles that client does not own. So the fix is applied to what you are looking at, not negotiated with anyone.
That is why there is no ownership check, and no case where a vehicle cannot be synced because somebody else is driving it.
The clock is already shared
Every client has GetNetworkTimeAccurate(), a millisecond clock the engine keeps
synchronised. tSync does not pick its own moment to re-phase — it waits for the
next multiple of intervalMs on that clock, so every client reaches that instant
together without being told to. Hence:
- No net events. Nothing to send, nothing to receive, nothing to forge.
- No server component to the sync. The only server file is the update check.
- No dependence on latency. A player on 300 ms re-phases at the same instant as one on 20 ms, because neither is waiting for a message.
The frame gap
Each pass drops the siren flag on every candidate, waits one frame, then raises them all.
Both halves matter. Dropping and raising one vehicle at a time restarts each timer at a different instant, which is the drift itself. And writing both values in the same frame leaves the engine nothing to observe — it reads the flag once per tick and would see only the final value, so the reset would silently never happen.
One frame of darkness at an interval measured in seconds is not visible.
Interaction with other scripts
| Luxart Vehicle Control | Works. LVC lets GTA draw the lights |
| Ultimate Lighting Controller | Works, and ULC's own park-sync is redundant alongside it |
| Vanilla / no lighting script | Works |
| tLS | Always skipped — tLS draws its own lights |
| Any script that renders its own LEDs | Unaffected either way; there is no engine timer to restart |
Tommy's Lights Sync
Still stuck? Support can answer it directly.
Was this page helpful?
TIMMYG Studios