mp.events.addCommand('gp', (player) => {
player.outputChatBox("Pozycja: " + player.position);
});
My English is not very well, sorry.
Today I started JS learning with RageMP. I made some easy scripts similar to examples. One of my first problems are this in top of the post. How can I round player.position?
It's problem for me cause player.position have 3 values - X, Y and Z.
In lua (MTA) it was easier for me.
local X, Y, Z = getPlayerPosition
print(X, Y, Z)