Jump to content
RAGE Multiplayer Community

Get objects coordinates


Recommended Posts

Trying to get coordinates of nearest ATM.

let joaat = mp.game.joaat("prop_atm_03");
return mp.game.object.getClosestObjectOfType(player.position.x, player.position.y, player.position.z, 1000000, joaat, false, true, true);

I'm getting integer something like 502585

How to get real object ?

 

I tried mp.objects.at(502585) and atHandle

Getting null in any case.

 

Thank you.

Link to post
Share on other sites
let joaat = mp.game.joaat("prop_atm_03");
return mp.game.object.getClosestObjectOfType(player.position.x, player.position.y, player.position.z, 1000000, joaat, false, true, true);

In this case getClosestObjectOfType returns different values every time/
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...