multitheftauto / mtasa-resources

This project maintains a list of up-to-date resources that come with Multi Theft Auto.
https://multitheftauto.com
MIT License
151 stars 151 forks source link

gps: Added export functions for custom logic #517

Closed T-MaxWiese-T closed 1 month ago

T-MaxWiese-T commented 2 months ago

This pull request adds a description so that you know what the resource can do and how to use it. It also adds export functions that other resources can use so that you can implement custom logic. You can read more about this in the meta.xml. I think the gps resource is an underrated resource because it has powerful functions. For example, with custom logic you could have an NPC vehicle drive from point A to point B. You can get the real distance from point A to point B. You can decide for yourself when a path is displayed in the HUD mini map and when it should no longer be displayed.