Traffic Light Controller 0.1
389
17
389
17
Traffic Light Controller - BETA v0.1
Automatically turns traffic lights green for emergency vehicles when sirens are activated. Drive any emergency vehicle with sirens on and traffic lights will change to green as you approach.
Features:
How it works:
The plugin uses pattern scanning to hook into the game's junction system (CJunctions). When sirens are active, it:
Requirements:
Installation:
Known Limitations:
Credits:
---
Automatically turns traffic lights green for emergency vehicles when sirens are activated. Drive any emergency vehicle with sirens on and traffic lights will change to green as you approach.
Features:
- Automatic green lights when driving emergency vehicles with sirens on, holds the light green for you until you pass
- Smart detection thanks to CJunction::GetJunctionAtPositionForTrafficLight
- Other directions stay red until you pass through
- Works with all emergency vehicles (police, fire, ambulance, etc.)
- Debug mode for troubleshooting (type tlcdebug in cheat console)
How it works:
The plugin uses pattern scanning to hook into the game's junction system (CJunctions). When sirens are active, it:
- Finds nearby junctions using GetJunctionAtPositionForTrafficLight
- Detects which entrance you're approaching based on position + velocity
- Sets CJunction::m_iLightPhase to your entrance's phase
- Holds m_fLightTimeRemaining at 10s until you pass
Requirements:
- GTA V (Single-player Legacy only)
- ScriptHookV by Alexander Blade
Installation:
- Install ScriptHookV if you haven't already
- Copy TrafficLightController.asi to your GTA V root folder
Known Limitations:
- Single-player only
- Beta release - may have occasional detection issues at complex junctions
- AI driving emergency vehicles does not affect traffic lights (yet)
Credits:
- ScriptHookV by Alexander Blade
---
Првпат Додадено: Јануари 8, 2026
Последно Ажурирање: Јануари 12, 2026
Последно Симнување: пред 4 саати
6 Коментари
Traffic Light Controller - BETA v0.1
Automatically turns traffic lights green for emergency vehicles when sirens are activated. Drive any emergency vehicle with sirens on and traffic lights will change to green as you approach.
Features:
How it works:
The plugin uses pattern scanning to hook into the game's junction system (CJunctions). When sirens are active, it:
Requirements:
Installation:
Known Limitations:
Credits:
---
Automatically turns traffic lights green for emergency vehicles when sirens are activated. Drive any emergency vehicle with sirens on and traffic lights will change to green as you approach.
Features:
- Automatic green lights when driving emergency vehicles with sirens on, holds the light green for you until you pass
- Smart detection thanks to CJunction::GetJunctionAtPositionForTrafficLight
- Other directions stay red until you pass through
- Works with all emergency vehicles (police, fire, ambulance, etc.)
- Debug mode for troubleshooting (type tlcdebug in cheat console)
How it works:
The plugin uses pattern scanning to hook into the game's junction system (CJunctions). When sirens are active, it:
- Finds nearby junctions using GetJunctionAtPositionForTrafficLight
- Detects which entrance you're approaching based on position + velocity
- Sets CJunction::m_iLightPhase to your entrance's phase
- Holds m_fLightTimeRemaining at 10s until you pass
Requirements:
- GTA V (Single-player Legacy only)
- ScriptHookV by Alexander Blade
Installation:
- Install ScriptHookV if you haven't already
- Copy TrafficLightController.asi to your GTA V root folder
Known Limitations:
- Single-player only
- Beta release - may have occasional detection issues at complex junctions
- AI driving emergency vehicles does not affect traffic lights (yet)
Credits:
- ScriptHookV by Alexander Blade
---
Првпат Додадено: Јануари 8, 2026
Последно Ажурирање: Јануари 12, 2026
Последно Симнување: пред 4 саати




Best mod for LPDFR 👋
Nice work
Not bad, you could expand the functionality by adding a menu that would allow you to switch traffic lights to standby mode (flashing yellow) or turn them red.
Ideally you could call it Opticom+ since there's already a plugin out there similar to this one called Opticom by ApparentlyRohan on the lcpdfr site. Traffic Light Controller indicates that you'd be able to control the traffic light with like a menu or something. Which I believe SimpleTrainer can do, not 100% sure tho.
Is there a way to implement an option to activate this mod with all vehicles? Like, I've been looking for a mod that makes the traffic lights go green whenever I approach them cus the vanilla timers are so bad to RP, it's like such a short amount of seconds to go through a green light that by the time you're making it, it already turns yellow and red, especially when using traffic density mods
This is what I Need