MaxRaimer Posted May 6, 2018 Share Posted May 6, 2018 Собственно вопрос таков: как получить координаты игрока и вывести их в чат Link to comment Share on other sites More sharing options...
maksa988 Posted May 6, 2018 Share Posted May 6, 2018 let position = mp.players.local.position; let text = `Current Position: ${position.x}, ${position.y}, ${position.z}`; mp.gui.chat.push(text); Link to comment Share on other sites More sharing options...
Realniy Posted June 19, 2018 Share Posted June 19, 2018 не понятно куда что вставлять? вставляю этот код в команду ,ничё не работает. можно готовую команду чтоб просто код вставить? Link to comment Share on other sites More sharing options...
hexisgod Posted June 19, 2018 Share Posted June 19, 2018 3 часа назад, Realniy сказал: не понятно куда что вставлять? вставляю этот код в команду ,ничё не работает. можно готовую команду чтоб просто код вставить? mp.events.addCommand('mypos', (player) => { player.outputChatBox(player.position); }); На сервер-сайд, точнее для тебя папка packages Link to comment Share on other sites More sharing options...
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