theralio Posted August 15, 2018 Share Posted August 15, 2018 (edited) Hello, How can i create a waypoint that shows the route on the map(i dont find anything in Wiki) like this i tried it with the Waypoint looking Blip https://www.pic-upload.de/view-35795824/Unbenannt.png.html and how can i calculate the distance between two points? Edited August 15, 2018 by theralio Link to comment Share on other sites More sharing options...
MrPancakers Posted August 15, 2018 Share Posted August 15, 2018 You can use a blip with the same icon as a waypoint, and then use https://wiki.rage.mp/index.php?title=Blip::routeFor to give you that line from you to the blip As for getting the distance it depends what you want, there's various ways https://wiki.rage.mp/index.php?title=Entity::dist https://wiki.rage.mp/index.php?title=Entity::distSquared https://wiki.rage.mp/index.php?title=Gameplay::getDistanceBetweenCoords There's plenty in the wiki to look at. 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