xgaming.tools

FiveM Vector3 / Coordinates Tool

Free FiveM coordinates tool. Convert between vector3, vector4, Lua table, JSON and C# Vector3, and calculate distance, heading and midpoint between two points.

Paste any format — vector3(x,y,z), x, y, z, {x=,y=,z=}, JSON. Numbers are auto-detected.

Lua vector3
vector3(3, -275.34, 6635.5)
Lua vector4
vector4(3, -275.34, 6635.5, 7.42)
Lua table
{ x = 3, y = -275.34, z = 6635.5 }
JSON
{ "x": 3, "y": -275.34, "z": 6635.5, "w": 7.42 }
C# Vector3
new Vector3(3f, -275.34f, 6635.5f)
Raw coords
3, -275.34, 6635.5

Distance, heading & midpoint

3D distance
9403.4 m
2D distance (x/y)
761.66 m
Heading A → B
180.08°
Midpoint
3.5, -656.17, 1949.25

Working with FiveM Coordinates

FiveM scripting lives and dies on coordinates. Spawns, markers, blips, jobs, MLO entrances and teleports all take a vector3 (or vector4 with a heading). This tool parses any common format you paste — vector3(x, y, z), a raw x, y, z list, a Lua table {x=, y=, z=}, or JSON — and outputs every format you might need, ready to copy.

It also handles the maths you'd otherwise do by hand: the 3D distance and flat 2D (x/y) distance between two points, the heading to face from point A toward point B (GTA's 0 = North convention), and the midpoint. Useful for placing markers, checking interaction ranges, or aiming a ped at a target.

Everything runs in your browser — paste coordinates from your script or from an in-game /coords command and convert instantly.

FiveM Vector3 / Coordinates Tool — FAQ

What coordinate formats does this tool accept?

Any common FiveM format — vector3(x, y, z), vector4(x, y, z, w), a raw x, y, z list, a Lua table {x=, y=, z=}, or JSON. It auto-detects the numbers in order, so you can paste straight from your script or an in-game /coords output.

How is heading calculated between two points?

It uses GTA's convention where 0 degrees faces North (+Y) and increases counter-clockwise. The tool computes the heading to face from point A toward point B, which you can pass to SetEntityHeading or a spawn.

What's the difference between 3D and 2D distance?

3D distance includes the Z (height) difference; 2D distance only uses X and Y (ground plane). Use 2D when height shouldn't count — e.g. checking if a player is within range of a marker regardless of floor.

You might also need

FiveM server admin docs

Read the full FiveM server docs →

Step-by-step guides for installing mods, configuring your server, joining, troubleshooting, and admin commands.

Built-In Tool

FiveM Server Hosting

Get managed FiveM server hosting with this tool built into your panel — configure, deploy, and play in minutes. Instant setup, DDoS protection, 24/7 support.

Built-In Config ToolInstant Server SetupDDoS ProtectionExpert 24/7 Support
Get 40% OFFNo setup fees · Cancel anytime