What is a vector3 in FiveM?
vector3 is a native Lua type in FiveM that packs a 3D coordinate — x, y, and z — into a single value. Position natives such as SetEntityCoords, teleport scripts, spawn points, and blip placement all expect coordinates in this shape, written as vector3(x, y, z). The problem is that every source hands you coordinates differently, and pasting the wrong format straight into a script is a classic cause of silent failures.
vector3, vec3, and vector4
vector3(x, y, z)— a position in the world.vec3(x, y, z)— a shorthand alias for the same thing.vector4(x, y, z, w)— a position plus a fourth value, usually the heading an entity should face. Paste four numbers above and this tool builds the vector4 for you.
How to get coordinates
Most trainers show your current position on screen, many servers expose a /coords or /pos command, and a short F8 console snippet can print GetEntityCoords of your ped. Whatever the format — labelled X: … Y: … Z: …, comma-separated, space-separated, or already wrapped in vector3(...) — paste it above and the helper extracts the numbers and reformats them cleanly.
Frequently asked questions
What is a vector3 in FiveM?
vector3 is a Lua type built into FiveM that stores a 3D coordinate — x, y, z. Most position-related natives (SetEntityCoords, teleports, spawn points) accept a vector3, written as vector3(x, y, z).
What is the difference between vector3, vec3 and vector4?
vector3(x, y, z) holds a position, vec3 is just a shorthand alias for it, and vector4(x, y, z, w) adds a fourth component — usually the heading the entity should face. This tool outputs all of them.
How do I get coordinates in FiveM?
Most trainers, the /coords command on many servers, and F8 console scripts print your current position. Paste whatever format they give you here and copy it back out as clean vector3, vec3, a Lua table, or CSV.