High Beams [ESX | QBCORE]

Changelog

v1.1.0 (Performance & Immersion Update)

Released: 2025-12-04

:rocket: New Features

  • OneSync Infinity Support: Added Config.UseOneSync to sync headlight events only to players within a specific range (Config.SyncRange). This significantly reduces server bandwidth usage.
  • NPC Reactions (Beta): AI vehicles in front of the player now react to high beams by trying to make way (toggleable via Config.NpcReact).
  • Audio Feedback: Added a subtle “click” sound effect when toggling the high beams (toggleable via Config.EnableSound).
  • Anti-Spam System: Implemented a cooldown timer (Config.Cooldown) to prevent players from spamming network events.

:bug: Bug Fixes & Improvements

  • Light State Logic: Fixed an issue where lights would turn off completely instead of reverting to low beams when releasing the key.
  • Network Safety: Improved ensureNetworkId validation to prevent errors with non-networked vehicles.
  • Config: Added new configuration options for all new features.