Log in to reply

[C#] Get waypoint directions into Scripthook.net

  • I am trying to get the waypoint directions after you set a waypoint on the minimap. Is this even possible right now? I've seen in the native DB functions with waypoint and player position but I'm relatively new at this and I don't really know what they do.
    NativeDB: http://www.dev-c.com/nativedb/

  • @yomisimie Do you mean that you want to get a list of all turns and direction changes, for something like a Sat-Nav mod?

    If you explain a bit more about what you're trying to do, it will be easier to know if it's possible or not.

    On a basic level, the waypoint functions allow you to set destinations on the map, that will generate a route that any Ped will follow, if you give them a Task to go to that location.

  • @LeeC2202 , yes something like a Sat-Nav. I need to get the path, and get the street nodes on that path, but that's another problem I think I can handle. Can I get the generated route from the waypoint? Is is stored in a native function? From what I searched I wasn't able to figure that one out.

  • @yomisimie I don't think it's stored as anything you can get access to, I've never been able to find anything to do it. There's only a single hit in the decompiled scripts too, so I'm not sure if it's possible,

  • @LeeC2202 I was afraid of that. Oh, well. I'm going to try to learn scripthook on another mod. Thanks for your help!

Log in to reply

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.