GLINT – Vehicle Spotlight System for FiveM
Overview 🔦
GLINT provides advanced vehicle-mounted spotlights for FiveM servers. Players can toggle floodlights, alley lights, or a smart tracking beam via UI or hotkeys, with full network synchronization so every player sees each other’s lights in real time.
Features ✨
- Floodlights: three forward-facing beams with adjustable intensity
- Alley lights: side-mounted downward-tilted beams
- Tracking beam: auto-aims at nearest vehicle ahead with smoothing
- UI panel (
/spotlightui
) for toggling modes and “all on/off” - Hotkey support: single/double-tap
L
for flood/alley - Networked state sync: see other players’ lights
- Light-weight and optimized for performance
Installation 📦
- Download the
GLINT
resource folder. - Place it into your server’s
resources/
directory. - Add
ensure GLINT
to yourserver.cfg
. - Restart or
refresh
+ensure GLINT
.
Configuration ⚙️[⚠️COMING SOON⚠️]
Edit config.lua
to tune light behavior:
-- Double-tap threshold (ms)
Config.DoubleTapThreshold = 300
-- Tracking smooth factor (0.0–1.0)
Config.RotationSmoothFactor = 0.15
-- Max distance and angle for auto-tracking
Config.TrackMaxDistance = 250.0
Config.TrackAngleThreshold = math.cos(math.rad(90))
-- Spotlight parameters
Config.FloodInnerRadius = 40.0
Config.FloodOuterRadius = 40.0
Config.FloodDistance = 50.0
Config.FloodIntensity = 40.0
Config.AlleyInnerRadius = 30.0
Config.AlleyOuterRadius = 20.0
Config.AlleyDistance = 35.0
Config.AlleyIntensity = 5.0
Config.TrackInnerRadius = 50.0
Config.TrackOuterRadius = 30.0
Config.TrackDistance = 25.0
Config.TrackIntensity = 28.6
Usage 🚀
Open the spotlight UI via:
/spotlightui
Or press L
—single-tap for floodlights, double-tap for alley lights.
Use the UI’s “Track” button to enable the auto-tracking spotlight. Click “All” to toggle all modes at once, or “Close” to hide the panel.
Scripts 📜
client.lua
— Handles input, NUI, spotlight rendering, auto-tracking, and state sync.server.lua
— Receives updates, maintainslightStates
, and broadcasts to clients.