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

Repairkit doesn't pick planes, helicopters and boats. #20

Closed
AdvancedLua opened this issue Feb 13, 2024 · 2 comments
Closed

Repairkit doesn't pick planes, helicopters and boats. #20

AdvancedLua opened this issue Feb 13, 2024 · 2 comments

Comments

@AdvancedLua
Copy link

When I tried to repair a boat, plane or helicopter it doens't let me do it. I had a look to the script and changed the following thing:

On line 629 from:
GetClosestVehicle(coords.x, coords.y, coords.z, 5.0, 0, 71)

to

vehicle = ESX.Game.GetClosestVehicle(coords)

After changing this it picked the boat, plane and helicopter, hopefully you guys can do something with this issue!

@Gellipapa
Copy link
Contributor

Hi! Exactly, the basic native 71 ID will not handle the boat or the plane so yes ESX has to use the closest vehicle method to work. Thanks for the bug report.

@Gellipapa
Copy link
Contributor

Hi! @AdvancedLua I fixed your problem thank you for report problem.

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in ESX Roadmap Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants