1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. GTA Network forum is now in archive mode.

Temporary fix for API.getWaypointPosition()

Discussion in 'Snippets' started by Xenius, Jan 16, 2017.

  1. Xenius

    Xenius Member Donator

    Messages:
    48
    Likes Received:
    22
    Joined:
    Sep 26, 2016
    This is a temporary fix.
    Bug report: https://forum.gtanet.work/index.php?threads/api-getwaypointposition.1488/

    Code:
    Code:
    function getWaypointPosition() {
        var blipIterator = API.returnNative("_GET_BLIP_INFO_ID_ITERATOR", 0);
        var blip = API.returnNative("GET_FIRST_BLIP_INFO_ID", 9, blipIterator);
        while (API.returnNative("DOES_BLIP_EXIST", 8, blip)) {
            if (API.returnNative("GET_BLIP_INFO_ID_TYPE", 0, blip) == 4) {
                return API.returnNative("GET_BLIP_INFO_ID_COORD", 5, blip);
            }
           
            blip = API.returnNative("GET_NEXT_BLIP_INFO_ID", 9, blipIterator);
        }
        return new Vector3();
    }
     
  2. MissMelissa

    MissMelissa New Member

    Messages:
    0
    Likes Received:
    0
    Joined:
    Dec 26, 2016
    This is no longer required with the next update. Yes~~
     
    501.legion likes this.

Share This Page