FiveM Coordinate Formatter
Paste raw coordinates in almost any shape, like plain numbers, a vector3(...), a {x, y, z} table, or x = ..., y = ..., z = ..., and get them cleanly formatted for your Lua scripts. Add a fourth number and it becomes a vector4 with heading. Everything runs in your browser.
Formatted
Individual values
vector3 and vector4 are built-in FiveM / CitizenFX Lua helpers, so these outputs drop straight into your scripts. A vector4 only appears when your input includes a fourth number to use as the heading.
FiveM coordinates, explained
How do I get my coordinates in FiveM?+
Most servers ship a /coords or /car command that prints your position, and many admin menus have a "copy coordinates" button. In a script you can read them yourself with the GetEntityCoords native: GetEntityCoords(PlayerPedId(), true) returns a vector3 for the local player. Whatever form you copy, paste it here and this tool will clean it up.
What is the difference between vector3 and vector4?+
vector3(x, y, z) stores a position only. vector4(x, y, z, w) adds a fourth component, which in FiveM is almost always the heading (the direction an entity faces). Use vector3 for a point in the world, and vector4 when you also need to spawn or place something facing a specific way.
What is the 4th number (heading)?+
The heading is a rotation around the vertical axis, measured in degrees from 0 to 360. It controls which way a ped, vehicle or object faces when it spawns. If your input has a fourth number, this tool treats it as the heading and includes it in the vector4 and Lua table outputs.
Why are vector3 and vector4 written that way?+
vector3 and vector4 are built-in CitizenFX Lua helpers exposed on FiveM and RedM servers. They create native vector values you can pass straight to natives like SetEntityCoords or CreateVehicle, which is cleaner and faster than juggling separate x, y and z variables.
Is it free?+
Completely free with no login or account required. Everything runs locally in your browser, so the coordinates you paste never leave your device.
More Digital Den tools
Browse the rest of our free, no-login utilities and bots.

