Sign in to follow this  
edouardlicn

how to locate the position?

Recommended Posts

If your questions is to simply find a position, probably the simplest way would be to make a command to print the player position (player.position), or use the render event to display your X Y Z coordinates.

Share this post


Link to post
Share on other sites
14 hours ago, MrPancakers said:

If your questions is to simply find a position, probably the simplest way would be to make a command to print the player position (player.position), or use the render event to display your X Y Z coordinates.

how to make a command to print the player position (player.position)?

Share this post


Link to post
Share on other sites
12 minutes ago, edouardlicn said:

how to make a command to print the player position (player.position)?

you could make it as simple as

mp.events.addCommand('pos', (player) => {
	player.outputChatBox("Position " + player.position);
	console.log("Pos:" + player.position)
});

This is obviously serverside javascript, if you're looking for C# you'll have to ask for someone else.

Also, I highly suggest reading the wiki, this is something really basic and if you couldn't do this you'll have a lot of trouble going forward.

Javascript: https://wiki.rage.mp/index.php?title=Main_Page

C#: https://wiki.gtanet.work/index.php?title=Main_Page

Both explain setting up, how to make commands, and all the API documentation you need.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.