FiveM Coordinates Finder & Vector Calculator
Convert between vector3, vector4, JSON coordinate formats. Calculate distance and midpoint. Generate Lua code.
What this tool is for
Coordinates travel between very different places in a FiveM project: as vector3 in Lua, as vector4 when a heading matters, as plain JSON in a config, and as loose numbers copied out of a chat message. This converter reads any of those shapes, normalises them, and gives you the format the target file expects, plus distance and midpoint between two points.
How to use it
- Step 1:
Paste the coordinates in whatever shape you have them. The parser handles vector3, vector4, JSON and bare comma separated numbers.
- Step 2:
Choose the target format. Add a heading if the point is a spawn or a ped position, because entities without one always face north.
- Step 3:
Use the distance panel for two points, for example to set the trigger radius of a zone.
- Step 4:
Copy the finished line for GetEntityCoords, SetEntityCoords or your config.
Frequently asked questions
What is the difference between vector3 and vector4?
vector3 is position only, vector4 adds the heading in degrees. Spawn points, ped positions and vehicle placements need the heading, otherwise every entity faces the same direction and lines of parked cars look wrong.
Which Z value should I use for ground level?
Take the Z from GetEntityCoords while standing on the spot, then subtract about one metre because the coordinate sits at the middle of the player model, not at their feet. For an exact value use GetGroundZFor_3dCoord.
Why does my ped spawn under the map?
Almost always a Z value that was copied from a point in the air, or a spawn inside terrain that has not streamed in yet. Wait for the collision to load before you place the entity, or set the ped to the ground Z after spawning.
How do I get coordinates while in game?
A small client command that prints GetEntityCoords(PlayerPedId()) into the console is enough, and most admin menus already have one. Copy the printed value straight into this tool to convert it into the format you need.
Related tools
FiveM 3D Distance Calculator - Vector3 Distance
Calculate 3D and 2D distances between FiveM coordinates. Get travel time estimates and ready-to-use Lua code with #(vector3 - vector3). Visual representation.
FiveM Map Blip Creator - Visual Builder
Create FiveM map blips visually. Select sprite ID, color, scale, and label. Generate complete Lua code for CreateBlip with all settings. Preview blip sprite.
JSON to Lua Table Converter for FiveM
Convert JSON to Lua table syntax and Lua tables back to JSON. Handles nested objects, arrays, booleans, null to nil. Syntax highlighted output for FiveM developers.