My own character standing at a "CANYON VIEW" lookout, with picnic tables and a rocky slope spread out around them

Last time I built my own teleport feature for development, simple_teleport. Today I strengthened it further and made progress on the groundwork for placing NPCs and shops. It's plain work, but the more this kind of footing is in place, the easier everything afterwards gets.

Adding the /coords Command

The help shown in the in-game chat when typing /coords: "/coords displays the coordinates and heading of your current position"

First, I added /coords, which lets me check the coordinates of wherever I'm standing right on the spot. What it gives me is,

  • The X coordinate
  • The Y coordinate
  • The Z coordinate
  • The heading (which way I'm facing)

— those four. With this, when I go to place NPCs, shops, garages and so on, I can immediately grab the coordinates of the spot where I think "I want to put it here." Placement work needs coordinates every single time, so just making this part easy changes the efficiency quite a lot.

The result of running /coords. The chat shows "simple_teleport: X: -428.78 / Y: 1596.80 / Z: 356.33 / Heading: 0.00"

Adding the /back Command

Next, I implemented /back, which returns me to where I was after moving with /tp.

The help shown in the in-game chat when typing /back: "/back returns you to the position you were at just before"

On top of that, if I run /back once more after returning, this time it takes me back to the destination. In other words, I can go back and forth between the original spot and the destination as many times as I like. When checking an MLO or the map, I can repeat "go there, come back, check again," so it turned out to be a quietly convenient feature.

What shows up when running /back without having used /tp even once: the message "There is no position to return to. Move with /tp first."

Verifying It Works

Everything I added this time, I checked for real inside the game.

The txAdmin console after running restart simple_teleport, showing "Started resource simple_teleport"
  • Get the current position and heading with /coords
  • Move to the specified coordinates with /tp
  • Return to the original spot with /back
  • Go back to the destination with /back again
Typing /tp 790.0 2548.0 72.6 at Legion Square. At the top of the chat, the earlier /coords result — "X: 194.34 / Y: -935.33 / Z: 30.69 / Heading: 144.00" — is still shown
The screen after teleporting. I've moved to the hill at the specified coordinates, with "Teleported: 790.00, 2548.00, 72.60" displayed
Back at Legion Square via /back, with "Teleported: 194.34, -935.33, 30.69" displayed
Running /back once more to return to the hill at the destination. Three teleports' worth of history lines up in the chat

I was able to confirm that this whole flow works correctly, exactly as intended.

What I Felt This Time

At the start it felt like "having the AI write code for me," but lately, little by little, it's started to feel like I'm raising a development tool made just for me.

Adding features while actually checking how they move in game is more fun than I expected, and I can really feel that even small improvements are steadily raising my development efficiency. Rather than building a big feature all at once, stacking up "it'd be handy to have this" one at a time like this might suit me better.

What I'll Do Next Time

Next I plan to add /copycoords.

The goal is to be able to get the current position in Lua's vector4() form, so I can paste it straight into code when placing NPCs and shops. I've gotten as far as "checking" with /coords, so next I want to carry it to "usable in code as-is."


This article is a record of the GTA6 FEED operator actually building a FiveM server on their own PC. The technical information is written after confirming the environment and each tool's offering as of June 2026, but the specifications and behavior vary by environment and may change going forward. FiveM and GTA are trademarks of their respective rights holders (Cfx.re / Rockstar Games), and this site is not affiliated with those companies.