Need help with the /tp command

Hi !
So i would like to have a command usable only by admin to TP to specific coords and i can’t find one anywhere!

I have the /tpm command that let you teleport to a marker on the map but i’d like a command that would go like this :

/tp x y z and that would teleport me to the specified coords.

I am NOT talking about the teleport script to make in and out tps for instance :no_good_woman: i know and use this one already.

My tpm script only have the tpm command, no tp to coords, vMenu doesnt seem to have it … the option for coords in nb_menuperso doesnt work either !

I need some help on how to create it in my server or where to get it because i often get maps or scripts that gives coords and cant go see where they are exactly since i cant tp there. Please help :frowning:

1 Like

In essentialmode and es_extended there is already tp command , which framework you are using

im using the base framework from fivem with esx

in my server if i do /tp with the coords it tells me tp is not a valid command

1 Like

Some screenshots if available?

You want screenshots of which file? :o i can take some np

Not. A valid command

1 Like

1

its in french sorry haha but yeh it just says tp is not a valid command … My es_admin2 is installed… there’s no error popping when i try to do the /tp :confused: i dont get why it doesnt work

1 Like

Give me sometime I will definitely provide you a positive result

1 Like

Thank you ! you’d be the best :smiley:

I need this too guys :smiley: It’s so annoying with the 1.2 extended to not have this as a command :slight_smile:

1 Like

@Macrofl3x @TheGrumpyFox [admin].zip (25.4 KB)
use this and it has 2 resources es_admin2 & es_admincmds
my tp to coords work with this.

Give a feedback if working

1 Like

Hum … i used them but it’s still not working :sweat_smile:

There’s no /tp or /coords cmd in there

Could it be like Macrofl3x said ? cause of es_extended? I use the 1.2 version of es_extended… If i try to use the latest version or the 2.0.0 it give me a lots of errors in my db :grimacing:

Yes, still got no answer to this. :smiley: I mean, maybe somehow someone will figure this one out.

i use this one essentialmode and es_extended [essentials].zip (3.0 MB) try this both of you i hope this will be a solution.

Used your files, gave me these errors :confused:

use this chat chat.zip (130.6 KB)

gives me the same errors… :frowning: im so done with this lol i dont get wth is wrong

i seen someone posting this elsewhere:

[Command(“coord”)]
public void TeleportPlayerToCoordinate(Client sender, int x, int y, int z)
{
var pos = API.getEntityPosition(sender.handle);

API.setEntityPosition(sender.handle, new Vector3(x, y, z));
}

dunno if that would work or how to / where to integrate it

1 Like