Smart Unique ID Display for QBCore — LOS / Spectator / Vehicle / Death Hidden — Clean 3D Text
Lightweight and privacy-friendly Unique ID display system for QBCore servers. The ID shows above players only when they are visible and in line of sight, and auto-hides when the player is spectating, dead, sleeping, or inside a vehicle (optional). Fully configurable through config.lua.
This script provides a clean and dynamic 3D Unique ID system for Roleplay servers using QBCore. It improves player visibility and identification while still protecting privacy and immersion by only showing IDs when it makes sense.
The Unique ID will display above players’ heads, turning green when they are talking. The script includes built-in smart hiding logic to ensure your RP environment stays immersive and realistic.
Clean 3D text display (no background box — sleek RP look)
Smart hiding system:
Hidden when no Line Of Sight (LOS)
Hidden during Spectator Mode
Hidden when dead
Hidden when sleeping / laying down
Hidden inside vehicles (toggleable)
Talking detection — ID turns green while the player is speaking
Lightweight & performance optimized (distance checks + thread sleeping)
Configurable settings in config.lua
Full client ↔ server sync for Unique IDs
Easy setup & clean code with comments
Unlike basic name tag scripts, this system is fully LOS-based, meaning you can’t see an ID through walls or obstacles — just like real RP visibility. It also automatically disables during spectator mode to prevent meta-gaming or administrative spying abuse.
Perfect for:
Serious roleplay servers
Staff enforcement without revealing player identities globally
Immersive / hardcore RP style
Clean UI setups
client/main.lua
server/main.lua
config.lua
Installation Guide (README)
Optional customization instructions
QBCore Framework
FiveM Server
Drag the resource into your server resources folder
Add ensure qb-uniqueid in your server.cfg
Adjust values in config.lua (distance, vehicle toggle, etc.)
Restart and enjoy
This resource comes with support for setup or minor adjustments.
High-quality FiveM scripts built to enhance your server.
Lightweight and optimized for smooth server performance.
Reliable support to help you get the most from your NSR scripts.
€34.99
€31.49
€24.99
€22.49