
XR Opticom System
Store · red_developmentPrices and availability may change. Confirm the terms in the original store.
About this resource
XR Opticom — Traffic Signal Pre-emption Emergency units running lights and sirens finally get the green. XR Opticom detects the junction ahead of your unit and changes it over the way a real Opticom system does: the other approaches go yellow, the junction goes all-red, and then your approach turns green. Every player near the junction sees the same thing at the same time. What makes this different? We have custom traffic light models with the proper flashing components and more. Making this different than any other script out there. Preview: https://youtu.be/3HdXbkT8w5I Features Real changeover: yellow → all-red → green, then back through yellow and red once the unit has passed. Lights never jump straight from green to red. One direction green: only the unit's approach goes green. Cross traffic and oncoming traffic are held at red. Synced across players: the server decides who holds a junction, and every nearby player sees the same phase, including players who arrive partway through. NPC traffic stops: AI cars on the cross street are held back while the junction is pre-empted. Speed-aware detection: the faster the unit is going, the further ahead it looks, so the light is green before it arrives. Confirmation lamps: steady white for the unit holding the junction, flashing white for every other approach, in step for every player. Mast-arm detector hardware: detailed detectors and PAR-38 confirmation lamps built onto the signal models, in two styles: square and round. Convoys share the green: the next unit extends the hold instead of restarting it. Fair limits: a maximum hold time and a cooldown make sure cross traffic gets its turn. Stopped units don't hold a green. Server-side checks on every request: job, duty, driver seat, speed and distance. No external anti-cheat needed. Compatibility Frameworks: Qbox, QBCore and ESX (auto-detected), or standalone with ace permissions Notifications: ox_lib, Qbox, QBCore, ESX or the native GTA feed Signals: base-game signals and Roxwood's work out of the box; other map signals can be added in the config Requires: OneSync Configuration Everything is in config/config.lua Commands /opticom : turn Opticom on or off for your unit, for example so only the lead car in a convoy holds junctions /opticomcheck : diagnostics showing why a junction is or isn't being pre-empted For developers Server exports: CanPreempt(source) , GetActivePreemptions() , ReleasePreemption(key) , ReleaseAllPreemptions() . View how to use them on our docs. Installation Put the xr_opticom folder in your resources folder. Add ensure xr_opticom to your server.cfg . OneSync must be enabled. Remove any other resource that streams the same traffic light models ( prop_traffic_01a , 01b , 01d , 02b , 03a , 03b ), and turn off any script that forces every light to one state. Set who may pre-empt in config/config.lua . Standalone servers grant access with add_ace group.police xr_opticom.use allow . Restart the server. Players need to reconnect to see the new signal models. To switch to the round detector style, copy the files from styles/round/ into stream/ , replacing the existing ones. Support Join the cord. https://discord.gg/6swGemu4M9