🆕 What’s New in v2.0.0
- ➕ New coordinate format(s) added to the panel alongside the existing six
- 🎨 Redesigned UI — refreshed layout and visual polish for a cleaner, more modern look
- ⚡ Performance optimizations — smoother animations and lighter resource usage
- 🐛 General stability and bug fixes carried over from v1 feedback
Coming from v1? Your core configuration in Lua/CMain.lua still works the same way — no breaking changes to setup.
✨ Features
- One-key access — press
F5 (rebindable) or type /coords to open the UI
- Multiple formats —
vector3, vector4, x/y/z, and high-precision variants, plus the new format added in v2, all in one panel
- Click to copy — click any row to instantly copy it to your clipboard
- In-game notification — confirms what was copied via ESX, QBCore, or native GTA V help text
- Frosted-glass UI — animated purple shimmer, ambient orb glows, smooth spring entrance, now refined with v2’s visual pass
- Zero dependencies — no external libraries; pure Lua + vanilla JS
- Framework-agnostic — works standalone, with ESX, or with QBCore out of the box
- Optimized runtime — reduced overhead compared to v1
📁 File Structure
dz-coords/
├── fxmanifest.lua ← Resource manifest (FiveM metadata)
├── Lua/
│ └── CMain.lua ← Client-side Lua logic
└── UIPage/
├── index.html ← NUI page structure
├── main.js ← NUI event handling & DOM rendering
├── main.css ← All visual styling & animations
└── img/
└── logo.png ← DZTeam logo shown in the header
🚀 Installation
-
Download this repository and rename the folder to dz-coords
-
Place the folder inside your server’s resources/ directory
-
Add the following line to your server.cfg:
ensure dz-coords
-
Restart your server — the resource will start automatically.
⬆️ Upgrading from v1? Simply replace the old dz-coords folder with the new one and restart your server. No config changes required.
⚙️ Configuration
Open Lua/CMain.lua and set the core variable at the top to match your framework:
local core = nil -- standalone (default)
local core = 'esx' -- es_extended
local core = 'qb' -- qb-core
That’s the only setting you need to change. Everything else works out of the box.
🎮 Usage
| Action |
Result |
Press F5 |
Opens the coordinate panel |
/coords in chat / F8 |
Also opens the panel |
| Click any row |
Copies that coordinate string & closes the panel |
Press ESC |
Closes the panel without copying |
Header ✕ button |
Closes the panel without copying |
Players can rebind F5 to any key they prefer via Settings → Key Bindings → FiveM inside GTA V.
The panel now displays your current position in more ready-to-paste formats:
| Label |
Example Output |
vector3 |
vector3(123.45, -678.90, 34.56) |
vector4 |
vector4(123.45, -678.90, 34.56, 270.00) |
x,y,z |
x=123.45, y=-678.90, z=34.56 |
xyzh |
x=123.45, y=-678.90, z=34.56, h=270.00 |
vec3 (precise) |
vec3(123.4500, -678.9000, 34.5600) |
vec4 (precise) |
vec4(123.4500, -678.9000, 34.5600, 270.0000) |
| 🆕 new format |
added in v2.0.0 |
Standard rows use 2 decimal places; Precise rows use 4 decimal places.
🛠️ How It Works
Player presses F5
│
▼
CMain.lua — RegisterKeyMapping fires OpenUI()
│
├─ GetEntityCoords(PlayerPedId()) → x, y, z
├─ GetEntityHeading(PlayerPedId()) → h
└─ SendNUIMessage({ type="open", ... })
│
▼
main.js — window 'message' listener
│
├─ Builds coordinate rows via makeRow()
└─ Sets document.body visible
│
Player clicks a row
│
├─ copyText(value) → clipboard
├─ nuiPost('int:noty', …) → Lua notification
└─ nuiPost('int:close', …) → SetNuiFocus(false)
🎨 UI Overview (v2 Redesign)
| Element |
Description |
| Shimmer bar |
Animated gradient line sweeping across the top of the card |
| Ambient orbs |
Two blurred purple glows that float behind the modal |
| Logo tile |
Displays img/logo.png with a pulsing corner dot |
| Coordinate rows |
Click-to-copy rows with hover slide + green flash on success, now including the new v2 format row |
| Live indicator |
Pulsing dot in the footer confirming real-time position data |
| Refreshed styling |
Updated spacing, contrast, and animation timing for a crisper, faster-feeling panel |
📦 Dependencies
| Dependency |
Required |
Notes |
| FiveM server |
✅ |
fx_version 'cerulean' or higher |
es_extended |
❌ Optional |
Only if core = 'esx' |
qb-core |
❌ Optional |
Only if core = 'qb' |
📝 Changelog
v2.0.0
- Added a new coordinate format to the panel
- Redesigned and polished the UI/UX
- Optimized client-side performance and reduced overhead
- Minor bug fixes and stability improvements
v1.0.0
🤝 Credits
🛒 Products & Custom Scripts
DZTeam offers both ready-made paid resources and fully custom script development.
| Service |
Details |
| 💰 Paid Resources |
Pre-built premium FiveM scripts — purchase directly via our Discord |
| 🎨 Custom Scripts |
Need something built specifically for your server? Order a custom script made just for you |
| 📦 How to Order |
Join our Discord and open a ticket — we’ll handle everything from there |
👉 discord.gg/53HkRrvzks — open a ticket to buy or order
📺 YouTube
Script previews, tutorials, and showcases are posted regularly on our channel.
📄 License
This project is licensed under the MIT License — you are free to use, modify, and distribute it.
Please keep the author and team credits intact.
评论