Advanced Nametag script in FiveM.
Video Showcase : https://youtu.be/LSclLA9U-hs?si=jDYIKrzmOThqR8YS
Advanced Nametag - Feature Overview
Advanced Nametag is an optimized nametag system designed for QB-Core, QBX, and ESX frameworks in FiveM servers. The script provides a comprehensive player identification system with advanced customization options.
Core Features
Multi-Framework Support
-
Automatic framework detection (QB-Core, QBX, ESX)
-
Seamless integration with character data from supported frameworks
-
Fallback to player names when no framework is detected
Player Nametag Display
-
Real-time 3D nametags above player heads
-
Configurable maximum viewing distance (default: 15 meters)
-
Customizable font type, size, and colors
-
Optional text outline for better visibility
-
Line-of-sight detection (nametags hidden behind walls)
Player ID System
-
Display server IDs alongside player names
-
Toggle command to show/hide IDs (
/nametagidby default) -
Forced ID display when players are masked
Mask System
-
Hides player identity when wearing a mask
-
Displays configurable masked name (default: "Masked")
-
Smooth mask on/off animations
-
Support for mask items from inventory
-
Automatic mask state synchronization across all clients
Damage Indicator
-
Visual flash effect when players take damage
-
Configurable flash duration and color
-
Real-time health monitoring
AFK Detection
-
Automatic detection of idle players
-
Customizable timeout period (default: 3 minutes)
-
Different color display for AFK players
-
Movement threshold-based detection
Enemy Marking System
-
Mark specific players as enemies with a command (
/markenemy) -
Persistent storage using JSON file
-
Different color display for marked enemies
-
Individual marking per character (CitizenID-based)
Minor Age Indicator
-
Automatically displays "(M)" tag for underage characters
-
Calculated from character birthdate
-
Works with both QB-Core and ESX date formats
Performance Optimization
-
State bag system for efficient data synchronization
-
Configurable update intervals
-
Raycast-based visibility detection
-
Cached player data to reduce performance overhead
Customization Options
Visual Settings
-
Adjustable text colors (normal, damage, ID, enemy, AFK)
-
Configurable head offset and font scale
-
Multiple font type options
-
Outline color and visibility
Toggleable Features
-
Show/hide own nametag
-
Show/hide player IDs
-
Enable/disable AFK detection
-
Enable/disable enemy marking
-
Enable/disable mask functionality
-
Hide dead players option
Advanced Configuration
-
Custom update intervals
-
Raycast flags adjustment
-
Mask component customization
-
AFK movement threshold settings
-
Damage flash duration
