Skip to content
RPScripts

FiveM Police Scripts

Opticom Traffic Light System FiveM resource preview

Opticom Traffic Light System

  • ESX
  • Standalone
  • QBCore
  • vRP

Description

This script adds a realistic Opticom infrared system to your server. When an emergency vehicle is detected, the traffic light it is heading to turns green, and nearby traffic can be stopped. It is a standalone script, so it does not depend on ESX, QBCore or another framework.

Features

  • The traffic light the vehicle is heading to turns green on detection
  • Nearby traffic lights turn red on detection
  • Nearby AI traffic stops for the emergency vehicle once the Opticom detects it
  • Works with traffic lights including custom ones
  • Whitelist vehicles other than the emergency class vehicles
  • Blacklist vehicles from being detected
  • Traffic lights and traffic reset after a defined period of time
  • Configuration options including detection distance, detection range, emergency vehicle class whitelist on/off and traffic stopping on/off
  • Synced between players, OneSync compatible

Requirements

  • No framework needed (standalone)

Installation and usage

  • Place the resource folder in your server's resources folder and add it to your server.cfg.
  • Edit the configuration in settings.ini, for example to enable or disable the emergency vehicle class whitelist.

Details

Frameworks
ESX, Standalone, QBCore, vRP
File size
11.4 kB
Updated
Sep 27, 2026
How to install it

Installation

  1. Unzip the download into your server's resources folder.
  2. Add these lines to server.cfg, in this order:
    ensure opticomsystem

Checked: the one resource of this download.

From a static check of the files by the RPScripts Lab. It is not a test that your server starts.

Opticom Traffic Light System

$12.99€11.99£9.99A$18.99R$66.99CHF 10.99¥2,060

Can't find the exact script? Generate it.

Describe a custom script. 3 free credits per day, up to 15 per calendar month; no card needed.

Try the FiveM AI Script Generator