Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gps: Added export functions for custom logic #517

Merged
merged 21 commits into from
Jul 19, 2024

Conversation

T-MaxWiese-T
Copy link
Contributor

@T-MaxWiese-T T-MaxWiese-T commented Jul 14, 2024

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.

T-MaxWiese-T and others added 21 commits April 30, 2024 03:40
…ed for teams

The reason for this pull request is because the resource did not work the way I wanted it to. Only after I had a closer look at the code I realized that you can configure the resource in the meta.xml. Because I wanted the playerblips resource to take over the team colors that I have in my code, but that didn't happen. And since the server log said to activate the playercolors resource, I did it, but it didn't help. Only after I deactivated the playercolors resource and set "use_team_colors" to "true" did it work as expected.
Anyway, the playercolors resource only makes sense if you want to have random player nametag colors, which makes no sense for a team, since a team can only have one color.
…splayed although it was not true and displayed on every player spawn
@Dutchman101 Dutchman101 merged commit 537d92d into multitheftauto:master Jul 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants