Jump to content
RAGE Multiplayer Community

Teleport to player command


alienwave
 Share

Recommended Posts

mp.events.addCommand('port', (player=> {
player.position = new mp.Vector3(278.219940.616210.084);
});
 
is not teleport ptp but a beginn you can make it with a Database and a playerlist read player from db and the cord x y z
thats how i would start
 
Edited by Groby
Link to comment
Share on other sites

10 часов назад, Groby сказал:
mp.events.addCommand('port', (player=> {
player.position = new mp.Vector3(278.219940.616210.084);
});
 
is not teleport ptp but a beginn you can make it with a Database and a playerlist read
player from db and the cord x y z
thats how i would start
 

Ok, thank you, I'll try it later

Link to comment
Share on other sites

В 25.04.2020 в 11:16, alienwave сказал:

Ok, thank you, I'll try it later

mp.events.addCommand('port', (player, name) => {
	mp.players.forEach(_player => {
		if(_player.name === name)
			player.position = _player.position;
	});
});

That's p2p teleport

Edited by biostunt
  • Like 2
  • Mask 1
Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...