Lander Posted October 12, 2008 Share Posted October 12, 2008 In the MTA wiki, where I can get a function for a teleport command???? PD: I'm still making the other project, is not dead =P Link to comment
50p Posted October 12, 2008 Share Posted October 12, 2008 setElementPosition is a function that (as its name says) sets element's (player/vehicle/marker, etc) position. addCommandHandler( "teleport", function( player ) setElementPosition( player, 0, 0, 3 ) -- teleport player to the centre of SA end ) Link to comment
veigac4tm Posted July 23, 2016 Share Posted July 23, 2016 setElementPosition is a function that (as its name says) sets element's (player/vehicle/marker, etc) position. addCommandHandler( "teleport", function( player ) setElementPosition( player, 0, 0, 3 ) -- teleport player to the centre of SA end ) Run client or server? Thank's for helping! Link to comment
SpecT Posted July 23, 2016 Share Posted July 23, 2016 It's shared function (you can use it client and server side). In the example it's server-sided. setElementPosition Link to comment
LabiVila Posted July 23, 2016 Share Posted July 23, 2016 Use it server-side, as client-side has no argument "player". If you use it client-side, you should remove the argument "player" and do 'setElementPosition (localPlayer, 0, 0, 3) Link to comment
Captain Cody Posted July 23, 2016 Share Posted July 23, 2016 Awesome 8 year bump veigac4tm Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now